摘要:
A system and method of providing a transformable region that may be used on graphics devices having different resolutions. The original path and geometric data of the region, as well as all operations performed on the data, are preserved when generating the region. The device-independent region can be described by a hierarchical tree, wherein the leaf nodes contain path or rectangle, ellipse, pie, and polygon data and the branch nodes contain the operations to be performed on the regions. As the tree is traversed and regions are used, they are converted to a device resolution-specific from such that the operations are performed on device resolution-specific regions. Matrix transformation operations (e.g., translate, scale, skew and rotate) can be applied because the original path information is preserved and if the region is to be used in a device having a different resolution or a subsequent matrix operation is to be applied to the region, the tree can be re-traversed.
摘要:
A method of setting a graphics container in a graphics device wherein a child application draws graphics within a parent application's graphics context. A parent application begins a graphics container, pushes the current state information to a container stack, and sets a new container transformation and a container clip region in the graphics context where the contained graphics will be displayed. The current world-to-device transformation is concatenated with the container transformation, and the current visible clip region is intersected with the container clip region for transforming the child graphics to the container. Further, an identifier is used to prevent the child from altering the container transformation set by the parent and from popping the container state stack. After the container is set by the parent application, the world and page transformations of the child application are set to default values and the clipping region is set to infinity. The child application draws graphics to the container without any knowledge that it is being contained. Further, the child is free to shrink the clipping that was set by the parent, but cannot expand it. When the container is ended by the parent, the graphics context is restored to the state prior to beginning the graphics container.
摘要:
The present invention displays text within a region by identifying text boxes within the region. To identify the text boxes, the invention uses scan lines that are spaced at intervals that are smaller than the text height of the text to be placed in the boxes. These scan lines are combined to identify the full text boxes. Additionally, under the invention, a region is transformed before text boxes are generated for the region. The transform is an inverse of a text transform that is applied to the text placed in the region. This allows rotated and skewed text to be placed in the region. The invention also facilitates displaying a single text string across several disjointed regions.
摘要:
The present invention displays text within a region by identifying text boxes within the region. To identify the text boxes, the invention uses scan lines that are spaced at intervals that are smaller than the text height of the text to be placed in the boxes. These scan lines are combined to identify the full text boxes. Additionally, under the invention, a region is transformed before text boxes are generated for the region. The transform is an inverse of a text transform that is applied to the text placed in the region. This allows rotated and skewed text to be placed in the region. The invention also facilitates displaying a single text string across several disjointed regions.
摘要:
A method of extracting information from a document and creating a record may include providing a document comprising text. The method may also include converting the text into a machine readable format. The method may further include displaying the document with the text in the machine readable format and displaying one or more data fields associated with the record to a user. Each of the data fields may be configured to store information. The method may additionally include receiving from the user, a selection of a data field and a selection of a first portion of text from the document to associate with the selected data field. The method may additionally include highlighting the first portion of text on the document. The method may additionally include extracting information associated with the first portion of text from the document and associating the extracted information with the data field.
摘要:
Methods and systems for correcting skew in digital images are disclosed according to embodiments of the invention. Embodiments may include receiving the endpoints of the skew-line, calculating the sine and cosine of the skew-angle from the endpoints and rotating the image using the sine and cosine of the skew-angle. Embodiments of the invention may also include various ways for a user to provide a skew-line and/or endpoints.
摘要:
A method of operating on an image of a document includes, for an electronic file that includes a representation of the document, portioning the representation of the document into non-overlapping areas. Each area includes a matrix of pixels and each pixel has an initial grayscale value and a position in the matrix. The method also includes, for each area, determining a black point value and a white point value. The method further includes, for each pixel in each area, determining a revised pixel grayscale value for the pixel using the pixel's grayscale value, the pixel's position in the matrix, the black point value for the area comprising the pixel, the white point value for the area comprising the pixel, the black point value for at least one area adjacent to the area comprising the pixel, and/or the white point value for at least one area adjacent to the area comprising the pixel. The method also includes producing the image of the document using the revised grayscale values for each pixel.
摘要:
Methods and systems for correcting skew in digital images are disclosed according to embodiments of the invention. Embodiments may include receiving the endpoints of the skew-line, calculating the sine and cosine of the skew-angle from the endpoints and rotating the image using the sine and cosine of the skew-angle. Embodiments of the invention may also include various ways for a user to provide a skew-line and/or endpoints.
摘要:
A method to use most of the colors that are available when rendering color images where a limited number of colors are available such as rendering images in VGA mode. The instant invention determines the maximum value of the color intensity values of a true color to display at a given (x, y) position. The number of full intensity values and half intensity values are determined and the number of half intensity color values are maximized. A halftone matrix is used and a halftone value is chosen from the halftone matrix using a modulo function. The color to be used at the (x, y) position is then selected based upon the full intensity values and the halftone value.
摘要:
An image editing user interface includes a first control adapted to alter an image property of an image in response to a user input and a second control adapted to operate in cooperation with the first control to alter the image property in response to a user input. The image property is brightness and the first control alters brightness over a range of image values between two endpoints and the second control defines at least one of the endpoints.