Abstract:
An image display method in which an image (IMG) to be presented is displayed on a CRT display screen (DFS), which method has steps of entering a horizontal dimension (L x ) and a vertical dimension (L y ) of the image to be presented; obtaining a magnification K by using lengths (B x , B y ) in the horizontal and vertical directions of the display screen as well as the dimensions L x , L y  ; obtaining coordinate values (X s , Y s ) of the starting point (DS&#39;) of the image to be presented following multiplication thereof by K; specifying starting point coordinate values (X s  &#39;, Y s  &#39;) of the image on the display screen; obtaining shift quantities S x , S y  in the horizontal and vertical directions by using the coordinate values (X s , Y s ), (X s  &#39;, Y s  &#39;) of both starting points; and displaying the image (IMG) on the CRT display screen (DFS) by using the magnification K and the shift quantities S x , S y .

Description:
BACKGROUND OF THE INVENTION 
     This invention relates to an image display method; and more particularly, to an image display method whereby an image to be depicted on the display screen of a CRT (cathode-ray tube) is enlarged or reduced for full display. 
     Graphic display units are in use everywhere as means for implementing CAD/CAM (computed aided design and computer aided manufacturing). For example, a graphic display unit may be utilized effectively as means for checking an NC machining program by instantaneously displaying the tool trajectory of an NC machine tool or the like or the shape to machined. When an image is to be displayed by a graphic display unit of this kind, it is essential 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 through a simple operation following enlargement or reduction. 
     SUMMARY OF THE INVENTION 
     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. 
     Another 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 following enlargement or reduction merely by entering horizontal and vertical dimensions of the image and specifying the starting point of the image on the display screen. 
     The present invention provides an image display method whereby an image to be presented can be displayed in full on a CRT display screen following enlargement or reduction by entering a horizontal dimension L x  and a vertical dimension L y  of the image to be presented; obtaining a magnification K by using lengths B x , B y  in the horizontal and vertical directions of the display screen as well as the dimensions L x , L y  ; obtaining the starting point coordinates (X s , Y s ) of the image to be presented following multiplication thereof by K; obtaining the starting point coordinates (X s  &#39;, Y s  &#39;) of the image on the display screen by positioning a cursor at the starting point of the image on the display screen; obtaining shift quantities S x , S y  in the horizontal and vertical directions by using (X s , Y s ) and (X s  &#39;, Y s  &#39;); and displaying the image on the CRT screen by using the magnification and the shift quantities. According to the present invention, 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 of the image to be depicted on the display screen. 
    
    
     BRIEF DESCRIPTION OF THE DRAWINGS 
     FIGS. 1 and 2 are schematic views for illustrating the image display method according to the present invention; 
     FIG. 3 is a flowchart of the image display method according to the present invention; and 
     FIG. 4 is a block diagram of circuitry for practicing the image display method according to the present invention. 
    
    
     DESCRIPTION OF THE PREFERRED EMBODIMENT 
     FIGS. 1 and 2 are schematic views for illustrating the 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 (O,O), 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 the present invention, 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&#39; by suitable amounts in the horizontal and vertical directions; and subjecting the picture information indicative of the grapic image to be displayed to transformation processing in such a manner that the enlarged or reduced graphic image IMG&#39; is made to fit the display screen DFS. In other words, according to the present invention, 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 as will fit the reduced grapic image IMG&#39; (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&#39; (indicated by the dotted line in FIG. 2) onto the display screen DFS are obtained to shift the graphic image IMG&#39; in the horizontal and vertical directions, and (c) tne X and Y coordinates (x,y) of the picture information specifying the graphic image IMG to be displayed are transformed into coordinates (x&#39;,y&#39;) by the following equation: ##EQU1## and (x&#39;,y&#39;) are used to generate a display graphic image. 
     FIG. 3 if a flowchart of an image display method according to the present invention, and FIG. 4 is a block diagram of a circuit for practicing the image display method of the present invention. 
     (a) First, horizontal and vertical dimensions L x , L y  of the graphic image which is desired to be presented are entered by operating a key located on an operator&#39;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: ##EQU2## In expressions (1) and (2), B x , B y  represent the horizonal 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  &lt;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  &#39; and a vertical magnification K y  &#39; can be obtained by performing the following computations instead of those indicated by expressions (1) and (2): ##EQU3## If K x  &#39;&lt;K y  &#39; holds, K x  &#39; is treated as the magnification K; if K x  &#39;≧K y  &#39;holds, then K y  &#39; 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&#39; of the enlarged or reduced graphic image IMG&#39; obtained by multiplying the graphic image IMG by the magnification K: 
     
         K·X.sub.a →X.sub.s                         (3) 
    
     
         K·Y.sub.a →Y.sub.s                         (4) 
    
     (e) Next, a cursor shift key, not shown, located on the operator&#39;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 becomes the image starting point (X s  &#39;, Y s  &#39;) on the display screen. This is a position for the purpose of displaying the starting point DS&#39; of the graphic image IMG&#39;. 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, or when the key is held depressed. The status of a Y register 105Y in the cursor pointer 105 is incremented by one count in a 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 a similar fashion each time the -Y cursor key is pressed, or 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  &#39;,Y s  &#39;) 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&#39; (X s ,Y s ) of the reduced or enlarged graphic image IMG&#39; into coincidence with the image starting point DB (X s  &#39;,Y s  &#39;) on the display screen DFS: 
     
         X.sub.s &#39;-X.sub.s →S.sub.x                          (5) 
    
     
         Y.sub.s &#39;--Y.sub.s →S.sub.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&#39;, y&#39; by using the following expression: ##EQU4## The controller delivers (x&#39;,y&#39;), 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 &#34;1&#34; 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 &#34;1&#34; 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, include: (1) 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; (2) a second method of generating a cursor pattern through a technique similar to that used for vector generation; and (3) 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. 
     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.