METHOD OF DISPLAYING IMAGE

Abstract: A method of displaying an image (IMG) being drawn on a image-drawing screen (DFS) of a CRT comprises a step of inputting a horizontal dimension (L x ) and vertical dimen­ sion (L y ) of the image being drawn, a step of obtaining a magnification K using horizontal and vertical lengths (B x , B y ) of the image-drawing screen and the dimensions L x , L y , a step of obtaining coordinates (X s , Y s ) of a drawing start point (DS′) of an image (IMG′) obtained by magnifying the image (MG) K times, a step of specifying coordinates (X s ′, Y s ′) of the drawing start point on the screen, a step of obtaining horizontal and vertical shift quantities S x , S y using of the coordinates (X s , Y s ), (X s ′, Y s ′) of both drawing start points, and a step of displaying the image (IMG) on the screen (DFS) of the CRT using the magnification K and the shift quantities S x , S y .

Description: This invention relates to an image display method such as one where an image of an object to be depicted on the display screen of a CRT (cathode-ray tube) is enlarged or reduced for full display of the object. Graphic display units are in use everywhere as means for implementing CAD/CAM (computer-aided design and manufacturing). For example, a graphic display unit may be utilized effectively for checking an NC machining program by instantaneously displaying the tool trajectory of an NC machine tool or the like or the shape to be machined. When an image is to be displayed by a graphic display unit of this kind, it is desirable that the unit have a function for displaying the image on the CRT display screen in full following enlargement or reduction. With conventional methods, however, the image to be presented cannot be displayed in full on the display screen by means of a simple operation following enlargement or reduction. For instance, EP-A-34506 shows an image display system where a given part of the screen can be enlarged to fill the whole screen, or the whole image reduced in scale so that the previous screen contents then fill only a given part of the screen. To display the complete image in full would necessitate either a trial-and-error step sequence or perhaps the reversal of previous reduction/enlargement steps if one had started with the complete image. An object of the present invention is to provide an image display method whereby an image to be presented can be displayed in full on a display screen through a simple operation. According to the invention there is provided a method for displaying an image to be presented on a display screen on the basis of stored picture information including image starting point data, including the steps of: entering horizontal and vertical dimensions of the image to be presented, obtaining a magnification factor K from the horizontal and vertical dimensions of the display screen and the said image dimensions, obtaining scaled starting point coordinate values of the image to be presented following scaling of the picture information by the factor K, entering data defining the starting point coordinate values of the image as it is to be displayed on the display screen, obtaining shift quantities in the horizontal and vertical directions from the two sets of starting point coordinate values, and displaying the image on the display screen on the basis of the stored picture information by using the said magnification and shift quantities. In another aspect the invention provides an apparatus for displaying an image, comprising an operating panel for entry of horizontal and vertical dimensions L x , L y of the image and of starting point coordinates of the displayed image, a display controller, a picture information memory for storing data defining the image, and a screen for displaying the image under the control of the display controller, wherein the controller includes means adapted for: obtaining a magnification K from the horizontal and vertical dimensions B x , B y of the display screen and the said image dimensions L x , L y , obtaining scaled starting point coordinate values of the image to be presented following scaling of the picture information by the factor K, obtaining shift quantities S x , S y in the horizontal and vertical directions from the two sets of starting point coordinate values and displaying the image on the display screen on the basis of the stored picture information by using the said magnification K and shift quantities S x , S y . In embodiments of the present invention, therefore, an image to be presented can be displayed on a display screen in full following enlargement or reduction merely by entering the horizontal and vertical dimensions of the image and specifying the starting point on the display screen of the image to be depicted. The starting point may be specified in a simple manner by using a cursor, for instance. An embodiment of the invention will now be described with reference to the drawings, in which: Figs. 1 and 2 are schematic views for describing an image display method in accordance with the present invention, Fig. 3 is a flowchart of the image display method, and Fig. 4 is a block diagram of circuitry for carrying out an image display method in accordance with the present invention. Figs. 1 and 2 are schematic views for describing an image display method according to the present invention. In the Figures, DFS represents the CRT screen (display screen) of a graphic display unit, RP denotes the origin, having coordinates (0,0), of an image to be presented, BRP designates the origin, having coordinates (O x ,O y ), of the display screen of the CRT, IMG represents the graphic image to be presented, and DS stands for the starting point of the graphic image to be presented. Let us assume that the graphic image to be presented is to be displayed in full on the display screen DFS. According to this embodiment, this is carried out by enlarging or reducing the graphic image IMG by applying a suitable magnification, shifting the enlarged or reduced graphic image IMG' by suitable amounts in the horizontal and vertical directions, and subjecting the picture information indicative of the graphic image to be displayed to transformation processing in such a manner that the enlarged or reduced graphic image IMG' is made to fit the display screen DFS. In other words, according to the present example, an image to be presented is displayed in full on a display screen by a three-step process. Specifically, (a) when the graphic image IMG which is to be displayed (Fig. 1) has been enlarged or reduced (reduced in the example of Fig. 1) by a predetermined magnification with the origin RP serving as a reference point, a magnification K is obtained so as to fit the reduced graphic image IMG' (indicated by the dotted line in Fig. 1) onto the display screen DFS, (b) shift quantities S x , S y necessary for fitting the reduced graphic image IMG' (indicated by the dotted line in Fig. 2) onto the display screen DFS are obtained to shift the graphic image IMG' in the horizontal and vertical directions, and (c) the X and Y co-ordinates (x,y) of the picture information specifying the graphic image IMG to be displayed are transformed into coordinates (x',y') by the following equation: and (x',y') are used to generate a graphic. Fig. 3 is a flowchart of an image display method according to the present example, and Fig. 4 is a block diagram of a circuit for carrying out the image display method. (a) First, horizontal and vertical dimensions L x , L y of the graphic image which is to be presented are entered by operating a key located on an operator's panel 101. It should be noted that L x , L y are each set in an input register 102. Next, an entry key, not shown, is pressed, whereupon a display controller 103 of microcomputer construction reads the horizontal and vertical dimensions L x , L y out of the input register 102 and stores them in an internal RAM 103a. (b) Thereafter, under the control of a control program which has been stored in an internal ROM 103b, the display controller 103 obtains a horizontal magnification K x and a vertical magnification K y by performing the following computations: In expressions (1) and (2), B x , B y represent the horizontal and vertical dimensions, respectively, both of which are known, of the CRT display screen DFS. (c) The magnitudes of K x , K y are then compared. If K x <K y holds, 1/K y is treated as the magnification K; if K x ≧K y holds, then 1/K x is treated as K. It should be noted that a horizontal magnification K x ' and a vertical magnification K y ' can be obtained by performing the following computations instead of those indicated by expressions (1) and (2): If K x '<K y ' holds, K x ' is treated as the magnification K; if K x '≧K y ' holds, then K y ' is treated as K. (d) The display controller 103 then reads the picture information indicative of the graphic image IMG, which has already been stored in a picture information memory 104, obtains the positional coordinates (X a , Y a ) of the image starting point DS (Fig. 1), and subsequently obtains, from the following expressions, the positional coordinates (X s , Y s ) of the starting point DS' of the enlarged or reduced graphic image IMG' obtained by multiplying the graphic image IMG by the magnification K: K·X a → X s (3) K·Y a → Y s (4) (e) Next, a cursor shift key, not shown, located on the operator's panel 101 is operated to position a cursor at a prescribed point DB (Fig. 2) on the display screen DFS, followed by pressing an input key. When this is done, the point DB is made the image starting point (X s ', Y s ') on the display screen. This is a position for the purpose of displaying the starting point DS' of the graphic image IMG'. It should be noted that the cursor shift keys include +X, -X, +Y and -Y cursor keys. The status X c of an X register 105X in a cursor pointer 105 is incremented by one count each time the +X cursor key is pressed. If this key is held depressed, the status X c of the X register 105X of the cursor pointer 105 will be incremented by one count at predetermined time intervals. The status of the X register 105X is decremented by one count in similar fashion each time the -X cursor key is pressed, of when the key is held depressed. The status of a Y register 105Y in the cursor pointer 105 is incremented by one count in similar fashion each time the +Y cursor key is pressed or when the key is held depressed. The status of the Y register 105Y is decremented by one count in similar fashion each time the -Y cursor key is pressed, of when the key is held depressed. The display controller 103 reads the cursor position information (X c ,Y c ) out of the cursor pointer 105 sequentially and displays the information on the CRT screen. When the input key is pressed after the cursor has been positioned at the image starting point DB, the display controller 103 recognizes the cursor position (X c , Y c ), which is being designated by the cursor pointer 105 at this time, as the positional coordinates (X s ',Y s ') of the image starting point DB on the CRT display screeen DFS. (f) Thereafter, computations based on the following expressions are performed to calculate the shift quantities S x , S y for shifting the image starting point DS' (X s ,Y s ) of the reduced or enlarged graphic image IMG' into coincidence with the image starting point DB (X s ',Y s ') on the display screen DFS: X s ' - X s → S x (5) Y s ' - Y s → S y (6) (g) When the calculation of the shift quantities S x , S y ends, the display controller 103 thenceforth reads the picture information out of the picture information memory 104 in successive fashion. If the picture information read is vector information, the controller transforms data x, y indicating the position along the X and Y axes into x', y' by using the following expression: The controller delivers (x',y'), which are obtained by the foregoing transformation, to a vector generator 106. The vector generator 106 uses the picture information input to perform an ordinary linear or circular interpolation calculation, thus to generate interpolated pulses XP, YP along the respective axes, which pulses are applied to an address counter 107. The latter has two address counters, one for the X and the other for the Y axis. These count the interpolated pulses along the respective axes and write a "1" into a storage location of a frame memory 108 which is designated by the X- and Y-axis address counters each time. The frame memory 108 is of matrix construction and has one-bit storage locations corresponding to the pixel positions of the cathode-ray tube display screen. Each time an interpolation pulse is generated, a "1" is written into a storage location at a matrix cross point designated by the X-and Y-axis address counters. When a graphic has been stored in the frame memory 108 by the foregoing processing, the stored information is subsequently read out of the frame memory 108 in synchronism with the deflection of the CRT beam (this is referred to as raster scanning), and intensity modulation is performed using the stored information to display the graphic image on a cathode-ray tube 109. It should be noted that a timing signal generator 110 produces a timing signal for reading the stored information out of the frame memory 108, and a timing signal for deflecting the beam. A read controller 111 reads the stored information out of the frame memory 108 on the basis of the timing signal and applies the stored information to an intensity controller 113 via a combining circuit 112. The intensity controller 113 performs intensity modulation based on the stored information. A deflection controller 114 deflects the beam horizontally and vertically in synchronism with the timing signal. If the picture information read out of the picture information memory 104 is a character code, the display controller 103 reads the character pattern indicated by the character code out of a character generator 115 and stores the pattern in a frame memory 116 for character pattern storage. Thereafter, a read controller 117 sequentially reads the stored information out of the frame memory 116 in synchronism with a timing signal produced by the timing signal generator 110. The combining circuit 112 combines this information with the signal read out of the frame memory 108 and applies the result to the intensity controller 113 to undergo intensity modulation. The methods of displaying the cursor are well-known and will not be described in detail. Methods which are available, however, are a first method of reading a cursor pattern out of the character generator 115, storing the cursor pattern at a prescribed location of the frame memory 116 indicated by the cursor pointer 105, and reading out the stored information to display the same, a second method of generating a cursor pattern through a technique similar to that used for vector generation, and a third method of creating a cursor display area by using the contents X c , Y c of the cursor pointer and, when the beam arrives at the cursor display area, applying an intensity control signal to the intensity controller 113 to display the same. The foregoing description relates to a case where the image starting point DB on the CRT screen is designated by using a cursor. However, the present invention is not limited to such case, for an arrangement is permissible in which the image starting point DB is designated by using a light pen or keyboard. Industrial Applicability According to the present invention, an image to be presented can be displayed in full on a display screen in a simple manner merely by entering horizontal and vertical dimensions of the image and designating the starting point of the image on the display screen by, e.g., a cursor. The present invention is therefore useful for application to a display unit.

Claims: A method for displaying an image to be presented on a display screen (DFS) on the basis of stored picture information (IMG) including image starting point data (DS), including the steps of:- entering horizontal and vertical dimensions L x , L y of the image to be presented, obtaining a magnification factor K from the horizontal and vertical dimensions B x , B y of the display screen and the said image dimensions L x , L y , obtaining scaled starting point coordinate values (X s , Y s ) of the image to be presented following scaling of the picture information (IMG) by the factor K, entering data defining the starting point coordinate values (X s ', Y s ') of the image as it is to be displayed on the display screen, obtaining shift quantities S x , S y in the horizontal and vertical directions from the two sets of starting point coordinate values (X s , Y s ), (X s ', Y s ') and displaying the image on the display screen (CRT) on the basis of the stored picture information (IMG) by using the said magnification K and shift quantities S x ' S y . An image display method according to claim 1, in which the said screen starting point coordinate values (X s ', Y s ') are entered by positioning a cursor at the desired starting point of the image on the display screen. An image display method according to claim 1 or 2, in which the image starting point data (DS) comprise coordinate values (X a ,Y a ), and the said scaled starting point coordinate values (X s , Y s ) of the image to be presented following scaling are calculated from the said image starting point values by performing the operations K.X a → X s , K.Y a → Y s . An image display method according to any preceding claim, in which the magnification K is obtained by performing calculations K x =B x /L x , K y =B y /L y , comparing the magnitudes of K x and K y , and using the smaller of these numerical values as the magnification K. An image display method according to any of claims 1 to 3, in which the magnification K is obtained by performing calculations K x =L x /B x , K y =L y /B y , comparing the magnitudes of K x and K y , and using the reciprocal of the larger of these numerical values as the magnification K. An image display method according to any preceding claim, in which the shift quantities S x , S y are obtained by performing the following operations: S x = X s - X s ' S y = Y s - Y s ' and in which the image is generated on a CRT using image coordinates (x',y') obtained through transformation of coordinates (x,y) from the stored picture information (IMG), in accordance with the following equations: An apparatus for displaying an image, comprising an operating panel (101) for entry of horizontal and vertical dimensions L x , L y of the image and of starting point coordinates (X s ',Y s ') of the displayed image, a display controller (103), a picture information memory (104) for storing data defining the image, and a screen (109) for displaying the image under the control of the display controller (103), wherein the controller (103) includes means adapted for: obtaining a magnification K from the horizontal and vertical dimensions B x , B y of the display screen and the said image dimensions L x , L y , obtaining scaled starting point coordinate values (X s , Y s ) of the image to be presented following scaling of the picture information (IMG) by the factor K, obtaining shift quantities S x , S y in the horizontal and vertical directions from the two sets of starting point coordinate values (X s , Y s ), (X s ', Y s ') and displaying the image on the display screen (109) on the basis of the stored picture information (IMG) by using the said magnification K and shift quantities S x , S y .

Inventors: KISHI, HAJIMU, TAKEGAHARA, TAKASHI, TANAKA, KUNIO
Applicants: FANUC LTD.
Application year: 1984
Main classification: G09G1
IPC codes: G09G5, G05B19, G06T3