KR100234337B1 - Method of generating the multi-line in the graphic image processing - Google Patents

Method of generating the multi-line in the graphic image processing Download PDF

Info

Publication number
KR100234337B1
KR100234337B1 KR1019960049345A KR19960049345A KR100234337B1 KR 100234337 B1 KR100234337 B1 KR 100234337B1 KR 1019960049345 A KR1019960049345 A KR 1019960049345A KR 19960049345 A KR19960049345 A KR 19960049345A KR 100234337 B1 KR100234337 B1 KR 100234337B1
Authority
KR
South Korea
Prior art keywords
points
divided
area
rectangular area
coordinate values
Prior art date
Application number
KR1019960049345A
Other languages
Korean (ko)
Other versions
KR19980030009A (en
Inventor
홍혜진
Original Assignee
윤종용
삼성전자주식회사
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 윤종용, 삼성전자주식회사 filed Critical 윤종용
Priority to KR1019960049345A priority Critical patent/KR100234337B1/en
Publication of KR19980030009A publication Critical patent/KR19980030009A/en
Application granted granted Critical
Publication of KR100234337B1 publication Critical patent/KR100234337B1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T1/00General purpose image data processing
    • G06T1/20Processor architectures; Processor configuration, e.g. pipelining
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T1/00General purpose image data processing
    • G06T1/60Memory management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2200/00Indexing scheme for image data processing or generation, in general
    • G06T2200/28Indexing scheme for image data processing or generation, in general involving image processing hardware

Abstract

본 발명은 프로세서, 메모리, 그래픽 디스플레이어, 기타 입출력 장치 및 그래픽 처리 소프트웨어로 구성된 그래픽 화면 처리 시스템에 있어서, 그래픽 화면 처리 시스템에서 처리되고 있는 전체 페이지 영역에서 일정한 사각형 영역을 지정하여 그 사각형 영역을 일정한 수로 균등 분할하는 방법에 관한 것으로서, 사용자로부터 분할하고자하는 가로선의 수와 세로선의 수를 입력받는 제1단계; 사용자로부터 균등 분할하고자하는 사각형 영역에 포함되는 두 점에 대한 좌표값을 입력받는 제2단계; 균등 분할하고자하는 사각형 영역을 찾는 제3단계; 가로선 분할인지 또는 세로선 분할인지를 파악하는 제4단계; 및 제3단계에서 찾은 상기 균등 분할하고자하는 사각형 영역을 제4단계에 의해 파악한 방식으로 제1단계에서 입력받은 수에서 1더한 수만큼으로 균등 분할하는 제5단계를 포함함을 특징으로 한다.The present invention relates to a graphic screen processing system comprising a processor, a memory, a graphic display device, and other input / output devices and graphics processing software, wherein a predetermined rectangular area is designated in the entire page area being processed in the graphic screen processing system, A first step of receiving a number of horizontal lines and a number of vertical lines to be divided from a user; A second step of receiving coordinate values of two points included in a rectangular area to be evenly divided from a user; A third step of finding a rectangular area to be evenly divided; A fourth step of determining whether the image is divided into horizontal lines or vertical lines; And a fifth step of uniformly dividing the rectangular area to be equalized, which is found in the third step, into a number obtained by adding 1 to the number of input squares in the first step in a manner determined by the fourth step.

본 발명에 의하면, 그래픽 화면 처리 시스템에 있어서 가로 또는 세로 다중선의 수와 분할하고자하는 사각형 영역 내의 두 점의 좌표값만을 입력받음에 의해 분할하고자하는 사각형 영역을 지정하고 그 영역을 균등하게 분할하기 위한 가로 또는 세로 다중선을 생성할 수 있게 되므로, 사용자들이 복잡한 양식의 보고서도 보다 편리하고 빠르게 작성할 수 있게 된다.According to the present invention, in a graphic screen processing system, a rectangular area to be divided is designated by receiving only the number of horizontal or vertical multiplexed lines and coordinate values of two points in a rectangular area to be divided, Since it is possible to generate horizontal or vertical multiple lines, users can write reports in complex form more conveniently and quickly.

Description

그래픽 화면 처리 과정에서 다중선 생성 방법{Method of generating the multi-line in the graphic image processing}TECHNICAL FIELD [0001] The present invention relates to a method of generating a multi-

본 발명은 일정한 사각형 영역을 균등하게 분할하기 위한 가로 또는 세로 다중선을 생성하기 위한 방법으로서, 특히 그래픽 화면 처리 시스템에 있어서 처리중인 그래픽 영역 내에 있는 일정한 사각형 영역을 지정하고 그 영역을 균등하게 분할하는 가로 또는 세로 다중선을 생성하는 방법에 관한 것이다.The present invention relates to a method for generating a horizontal or vertical polyline for evenly dividing a certain rectangular area, and more particularly to a method for designating a constant rectangular area in a graphics area being processed in a graphic screen processing system and dividing the area equally And more particularly to a method for generating horizontal or vertical multiple lines.

일반 사용자들이 일정한 사각형 영역을 균등 분할하는 여러개의 가로선 또는 세로선을 작성하고자 하는 경우가 있다. 이러한 작업을 손으로 직접 하는 경우에는, 자와 연필을 이용하여 일일이 줄의 간격을 계산하고 눈금을 매겨야만 하므로 상당히 번거롭다. 사용자가 기존의 워드 프로세서나 보고서 작성기 등의 그래픽 화면 처리 시스템을 이용하여 상기 작업을 하는 경우에는, 한개의 선을 그린 후에 이를 계속적으로 일정한 간격으로 복사하는 방법을 이용할 수 있다. 그러나, 이러한 방법 역시 사용자의 불편을 조금 덜어줄 뿐 만족할 만한 해결책은 아니다.Ordinary users may want to create multiple horizontal lines or vertical lines that evenly divide a certain rectangular area. If you do this manually, it is quite cumbersome because you have to use a ruler and a pencil to calculate the line spacing and scale each line. When the user performs the above operation using a graphic screen processing system such as a word processor or a report generator, a method of copying one line at regular intervals after drawing one line can be used. However, this method is not a satisfactory solution as it alleviates the inconvenience of the user.

뿐만 아니라, 상기한 바와 같은 다중선 생성 기능은 프로세서(processor), 메모리, 그래픽 디스플레이어, 기타 입출력장치 및 그래픽 처리 소프트웨어로 구성된 그래픽 화면 처리 시스템에서도 자주 요구된다. 예를들면, 상기 그래픽 처리 시스템의 그래픽 화면에서 하나의 사각형 오브젝트를 지정하고 여기에 일정한 형태의 표를 작성하고자 하는 경우에 상기한 바와 같은 다중선 생성 기능이 요구되는 데, 사용자가 키보드나 마우스를 이용하여 상기 사각형 오브젝트 영역을 균등한 영역으로 분할하는 것은 매우 어렵고 귀찮은 작업이다.In addition, the above-described polyline generation function is often required in a graphic screen processing system composed of a processor, a memory, a graphic display device, other input / output devices, and graphic processing software. For example, when one rectangular object is designated in the graphic screen of the graphics processing system and a certain type of table is to be created, a polyline generation function as described above is required. It is a very difficult and cumbersome task to divide the rectangular object area into equal areas.

본 발명은 상기한 문제점을 해결하기 위하여 창작된 것으로서, 그래픽 화면 처리 시스템에 있어서 가로 또는 세로 다중선의 수와 분할하고자하는 사각형 영역 내의 두 점의 좌표값만을 입력받음에 의해 분할하고자하는 사각형 영역을 지정하고 상기 영역을 균등하게 분할하기 위한 가로 또는 세로 다중선을 생성하는 방법을 제공함에 그 목적이 있다.SUMMARY OF THE INVENTION The present invention has been made in order to solve the above problems, and it is an object of the present invention to design a rectangular area to be divided by receiving only the number of horizontal or vertical multiplexed lines and coordinate values of two points within a rectangular area to be divided, And a method for generating horizontal or vertical multiple lines for evenly dividing the area.

도 1은 본 발명에 의한 다중선 생성 과정을 도시한 흐름도이다.FIG. 1 is a flowchart illustrating a polynomial generation process according to the present invention.

도 2는 도 1의 균등 분할하고자 하는 사각형을 구하는 과정을 도시한 상세 흐름도이다.FIG. 2 is a detailed flowchart showing a process of obtaining a rectangle to be evenly divided in FIG.

도 3은 본 발명의 일실시예를 설명하기 위하여 다중선 생성 이전의 페이지 영역을 도시한 것이다.FIG. 3 illustrates a page area prior to polyline generation to illustrate an embodiment of the present invention.

도 4는 본 발명의 일실시예를 설명하기 위하여 다중선 생성 이후의 페이지 영역을 도시한 것이다.4 illustrates a page area after polyline generation to illustrate an embodiment of the present invention.

상기의 목적을 달성하기 위한 본 발명의 구성은 다음과 같다.In order to achieve the above object, the present invention is constructed as follows.

프로세서, 메모리, 그래픽 디스플레이어, 기타 입출력 장치 및 그래픽 처리 소프트웨어로 구성된 그래픽 화면 처리 시스템에 있어서, 상기 그래픽 화면 처리 시스템에서 처리되고 있는 각종 도형, 기호, 문자 스트링의 오브젝트로 구성된 전체 페이지 영역에서 일정한 사각형 영역을 지정하여 그 사각형 영역을 일정한 수로 균등 분할하는 방법은 사용자로부터 분할하고자하는 가로선의 수와 세로선의 수를 입력받는 제1단계; 사용자로부터 균등 분할하고자하는 사각형 영역에 포함되는 두 점에 대한 좌표값을 입력받는 제2단계; 상기 두 점에 대한 좌표값을 이용하여, 균등 분할하고자하는 사각형 영역을 찾는 제3단계; 상기 두 점에 대한 좌표값을 이용하여, 가로선 분할인지 또는 세로선 분할인지를 파악하는 제4단계; 및 제3단계에서 찾은 상기 균등 분할하고자하는 사각형 영역을 제4단계에 의해 파악한 방식으로 제1단계에서 입력받은 수에서 1더한 수만큼으로 균등 분할하는 제5단계를 포함함을 특징으로 한다.A graphic screen processing system comprising a processor, a memory, a graphic display device, and other input / output devices and graphic processing software, the graphic screen processing system comprising: A method for dividing a rectangular region into a predetermined number of regions is a method including: a first step of receiving a number of horizontal lines and a number of vertical lines to be divided from a user; A second step of receiving coordinate values of two points included in a rectangular area to be evenly divided from a user; A third step of finding a rectangular area to be evenly divided using the coordinate values of the two points; A fourth step of determining whether a horizontal line segmentation or a vertical line segmentation is performed using the coordinate values of the two points; And a fifth step of uniformly dividing the rectangular area to be equalized, which is found in the third step, into a number obtained by adding 1 to the number of input squares in the first step in a manner determined by the fourth step.

본 발명이 동작되는 그래픽 화면 처리 시스템에는 그래픽 처리 소프트웨어, 메모리, 프로세서, 그래픽 디스플레이어 및 기타 입출력 장치로 구성된다. 상기 그래픽 처리 소프트웨어는 그래픽 화면 처리 기능을 갖는 모든 종류의 응용 소프트웨어를 포함하고, 상기 메모리는 상기 그래픽 처리 소프트웨어가 실행되기 위하여 로드되는 하드웨어 장소이며, 상기 프로세서는 상기 그래픽 처리 소프트웨어를 실행시키는 하드웨어이며, 상기 그래픽 디스플레이어는 상기 프로세서에서 처리된 그래픽 데이터를 그래픽 화면으로 보여주는 하드웨어 장치이다. 그리고 기타 입출력 장치로는 키보드, 마우스와 같은 입력장치와 프린터, 플라터와 같은 출력장치도 있을 수 있다.The graphic screen processing system in which the present invention operates includes graphic processing software, a memory, a processor, a graphic displayer, and other input / output devices. Wherein the graphics processing software includes all kinds of application software having a graphic screen processing function, the memory being a hardware place in which the graphics processing software is loaded for execution, the processor being hardware for executing the graphics processing software, The graphic display device is a hardware device that displays graphic data processed by the processor as a graphic screen. Other input / output devices may include input devices such as a keyboard and a mouse, and output devices such as a printer and a platter.

상기 그래픽 화면 처리 시스템에 있어서 상기 그래픽 처리 소프트웨어는 일반적으로 상기 그래픽 디스플레이어의 그래픽 화면에서 처리되고 있는 각종 도형, 기호, 문자 스트링을 오브젝트(object)라는 단위로 관리한다. 따라서, 상기 그래픽 처리 소프트웨어는 상기 그래픽 화면 상에 도시된 사각형, 직선, 문자 스트링, 그림 이미지 등에 대한 정보를 각각 오브젝트 단위로 처리하게 되고, 결국 이들 오브젝트의 집합이 전체 그래픽 화면을 구성하게 되는 것이다. 상기 그래픽 화면 처리 시스템에 있어서 전체 페이지 영역이라함은 상기 그래픽 소프트웨어가 처리하는 전체의 그래픽 영역을 의미하는 것으로서, 그래픽 디스플레이어 화면에 표시된 부분뿐만이 아니라 화면의 상하좌우에 숨겨진 부분도 포함하는 개념이다.In the graphic screen processing system, the graphic processing software generally manages various graphics, symbols, and character strings processed in a graphic screen of the graphic display device in units of an object. Accordingly, the graphic processing software processes information on a rectangle, a straight line, a character string, a picture image, and the like shown in the graphic screen on an object-by-object basis. In the graphic screen processing system, the entire page area refers to the entire graphic area processed by the graphic software, and includes not only the part displayed on the graphic display screen, but also the hidden part in the top, bottom, left and right sides of the screen.

이하에서 첨부된 도면을 참조하여 본 발명을 상세히 설명한다.DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS The present invention will now be described in detail with reference to the accompanying drawings.

도 1은 본 발명에 의한 다중선 생성 과정을 도시한 흐름도이다. 먼저, 사용자로부터 분할하고자하는 가로선의 수와 세로선의 수를 입력받아야만 한다(100단계). 가로선의 수와 세로선의 수를 입력받는 방법으로는 그래픽 사용자 인터페이스(GUI)를 통해 대화 상자를 만들어 키보드를 통해 입력받는 방법을 이용할 수 있다. 이때, 좀 더 유용한 방법으로는 직전에 사용한 가로선의 수의 값과 세로선의 수의 값을 환경변수로 하여 일정한 저장매체(예를 들면, 디스크)에 저장하여 두었다가, 사용자로부터 상기 값들을 상기와 같은 키보드 입력 방식으로 새로이 입력받은 경우에는 상기 환경 변수를 변경한 다음 입력받은 값들을 이용하고, 새로이 입력받지 못한 경우에는 상기 저장매체로부터 상기 값들을 입력받도록 할 수도 있다.FIG. 1 is a flowchart illustrating a polynomial generation process according to the present invention. First, the number of horizontal lines and the number of vertical lines to be divided must be input from the user (step 100). As a method of receiving the number of the horizontal lines and the number of the vertical lines, a method of creating a dialog box through a graphical user interface (GUI) and receiving the input through the keyboard can be used. At this time, as a more useful method, the value of the number of the horizontal line used immediately before and the value of the number of the vertical line are stored in a predetermined storage medium (for example, a disk) as environment variables, When a new input is received by the keyboard input method, the input values may be used after changing the environment variable, and when the new input is not received, the values may be input from the storage medium.

그 다음, 사용자로부터 균등 분할하고자하는 사각형 영역에 포함되는 두 점에 대한 좌표값을 입력받는다(110단계). 상기 두 점에 대한 좌표값을 입력받는 방법도 상기한 바와 같은 대화 상자에 의한 키보드 입력 방식과 마우스 또는 라이트 펜 등을 이용하여 입력하는 방식들이 모두 이용될 수 있다.Next, coordinate values of two points included in the rectangular area to be evenly divided are input from the user (step 110). A method of receiving coordinate values for the two points may be a keyboard input method using a dialog box and a method using a mouse or a light pen.

그 다음, 상기 두 점에 대한 좌표값을 이용하여, 균등 분할하고자하는 사각형 영역을 찾는다(120단계). 도 2에 의하면, 균등 분할하고자 하는 사각형을 구하는 과정은 다음과 같다.Next, using the coordinate values of the two points, a rectangular area to be evenly divided is searched (operation 120). Referring to FIG. 2, a process for obtaining a quadrangle to be evenly divided is as follows.

먼저, 상기 균등 분할하고자하는 사각형 영역을 R이라 할 때, 상기 그래픽화면 처리 시스템에서 처리되고 있는 전체 페이지 영역의 크기를 R로 둔다(200단계). 그 다음, 상기 그래픽 화면 처리 시스템에서 처리되고 있는 전체 페이지 영역 상에 있는 모든 오브젝트를 차례로 검색하면서 검색할 다음 오브젝트가 있는지 여부를 확인하여(210단계), 검색할 다음 오브젝트가 없으면 R을 균등 분할하고자하는 사각형 영역으로 하고 상기 120단계를 마치게 된다(290단계). 만약 검색할 다음 오브젝트가 있으면 그 오브젝트가 사각형 또는 둥근 사각형 오브젝트인지 여부를 검색하게 된다(220단계). 여기에서 둥근 사각형이라 함은 사각형의 모서리 부분을 호 모양으로 둥글게 처리한 사각형을 일컫는다.First, when the rectangle area to be evenly divided is R, the size of the entire page area being processed in the graphic screen processing system is set to R (step 200). Then, it is checked whether all the objects on the entire page area being processed in the graphic screen processing system are sequentially searched and whether or not there is a next object to be searched (step 210). If there is no next object to be searched, And the step 120 is completed (step 290). If there is a next object to be searched, it is searched whether the object is a rectangular or round rectangular object (step 220). Here, the rounded rectangle refers to a rectangle formed by rounding the corner portion of the rectangle into an arc.

그 다음, 상기 오브젝트가 사각형이나 둥근 사각형일 때, 그 오브젝트가 상기 110단계에서 입력받은 상기 두 점에 대한 좌표값을 모두 포함하는지 여부를 검색하여(230단계), 상기 두 점에 대한 좌표값을 모두 포함하면 상기 R의 영역과 새로운 오브젝트의 영역을 함께 포함하는 영역을 새로운 R로 두고(240단계), 상기 210단계를 계속한다. 만약 두 점에 대한 좌표값의 모두를 포함하지 아니하면 바로 상기 210단계를 계속하게 된다.Then, when the object is a rectangle or a round rectangle, it is searched whether the object includes all of the coordinate values of the two points input in the step 110. In operation 230, The region including the area of R and the area of the new object is set as a new R (step 240), and the step 210 is continued. If all of the coordinate values for two points are not included, step 210 is immediately continued.

상기 오브젝트가 사각형이나 둥근 사각형이 아닐 때, 그 오브젝트가 수직선이나 수평선인지 여부를 검색하여 만약 수직선이나 수평선이 아니면 상기 210단계를 계속하게 된다(250단계). 이러한 오브젝트들은 고려 대상에서 제외되기 때문이다. 다음 수직선 또는 수평선 오브젝트가 R을 분할하는지 여부를 검색하여 R을 분할하는 것이 아니면 상기 210단계로 되돌아가게 된다(260단계). 그 다음, 분할된 R의 두 영역 중에서 상기 110단계에서 입력받은 상기 두 개의 점을 모두 포함하고 있는 영역이 있는지 여부를 검색하여(270단계), 만약 상기 두 점을 모두 포함하고 있는 영역이 있으면 그 영역을 새로운 R로 두고(280단계), 상기 210단계를 계속하게 된다. 그러나, 만약 상기 두 점에 대한 좌표값의 모두를 포함하는 영역이 없다면, 바로 상기 210단계를 계속하게 된다.If the object is not a rectangle or a round rectangle, it is checked whether the object is a vertical line or a horizontal line. If the object is not a vertical line or a horizontal line, step 210 is performed. Because these objects are excluded from consideration. If it is determined that the next vertical or horizontal object does not divide R and the R is not divided, the process returns to step 210 (step 260). Then, it is determined whether or not there is an area including all the two points inputted in step 110 among the two areas of the divided R (step 270). If there is an area including both of the two points, The region is set as a new R (step 280), and the step 210 is continued. However, if there is no area including all of the coordinate values for the two points, the step 210 is immediately continued.

다시 도 1을 참조하면, 그 다음 단계는 상기 두 점에 대한 좌표값을 이용하여, 가로선 분할인지 또는 세로선 분할인지를 파악한다(130단계). 상기 130단계는 다음과 같은 방법에 의해 구현될 수도 있다.Referring back to FIG. 1, in the next step, it is determined whether a horizontal line division or a vertical line division is performed using the coordinate values of the two points (operation 130). The step 130 may be implemented by the following method.

즉, 상기 110단계에서 입력받은 두 개의 점에 대한 좌표값을 각각 (X1, Y1)과 (X2, Y2)라고 할 때, ΔX = |X1 - X2|와 ΔY = |Y1 - Y2|를 계산한 다음, 상기 ΔX가 상기 ΔY와 같거나 클 때 가로선 분할로서 파악하고, 상기 ΔX가 상기 ΔY보다 작을 때 세로선 분할로서 파악한다.That is, when the coordinate values of the two points received in step 110 are (X1, Y1) and (X2, Y2), respectively, ΔX = | X1-X2 | and ΔY = | Y1-Y2 | Next, when ΔX is equal to or larger than ΔY, it is recognized as a horizontal line division, and when ΔX is smaller than ΔY, it is grasped as a vertical line division.

그 다음에, 120단계에서 찾은 상기 균등 분할하고자하는 사각형 영역을 130단계에 의해 파악한 방식으로 100단계에서 입력받은 수에서 1더한 수만큼으로 균등 분할한다(140단계).Next, in step 140, the rectangular area to be evenly divided, which is found in step 120, is equally divided by the number obtained by adding the number of rectangles input in step 100 in a manner determined by step 130 (step 140).

이하에서 본 발명에 대한 하나의 실시예를 들어 동작을 상세히 설명한다.Hereinafter, the operation will be described in detail with reference to one embodiment of the present invention.

도 3은 본 발명의 일실시예를 설명하기 위하여 다중선 생성 이전의 페이지 영역을 도시한 것이다. 도 3의 참조 번호 300은 상기 전체 페이지 영역을 표시한 것이고, 참조 번호 310은 문자 스트링 오브젝트를 표시한 것이다. 또한 참조 번호 330과 340은 사각형 오브젝트를 나타낸 것이고, 참조 번호 320과 350은 수평선 오브젝트를, 참조 번호 360은 수직선 오브젝트를 표시한 것이다. 그 다음, 참조 번호 370과 380은 사용자로부터 입력받은 두 점의 좌표 위치를 나타낸 것이다. 본 실시예에서 상기 그래픽 소프트웨어는 사용자로부터 가로선의 수로서 10을 세로선의 수로서 5를 입력받고 있으며, 오브젝트는 310에서 360까지의 번호 순과 일치되어 관리되고 있는 것으로 가정한다.FIG. 3 illustrates a page area prior to polyline generation to illustrate an embodiment of the present invention. Reference numeral 300 in FIG. 3 denotes the entire page area, and reference numeral 310 denotes a character string object. Reference numerals 330 and 340 denote rectangular objects, reference numerals 320 and 350 denote horizontal line objects, and reference numeral 360 denotes a vertical line object. Next, reference numerals 370 and 380 denote coordinate positions of two points input from the user. In the present embodiment, it is assumed that the graphic software receives 10 as the number of horizontal lines from the user and 5 as the number of the vertical lines, and the objects are managed in accordance with the order of the numbers from 310 to 360.

먼저 도 2에 의한 균등 분할하고자 하는 사각형 영역을 찾는 과정을 검토하여 보자. 처음에 R에는 전체 페이지 영역(300)이 할당될 것이다. 그 다음 첫번째 오브젝트인 참조 번호 310을 검색하면, 사각형이나 둥근 사각형 오브젝트도 아니고 수직선이나 수평선도 아니므로 이를 고려 대상에서 제외한다. 다음, 참조 번호 320 오브젝트를 검색하면, 수평선 오브젝트이나 현재의 R값인 전체 페이지 영역을 분할하지는 않으므로 이것도 역시 고려 대상에서 제외한다. 다음, 참조 번호 330 오브젝트를 검색하면, 사각형 오브젝트이고 입력받은 두 점(370, 380)을 포함하므로 전체 페이지 영역과 현재의 사각형 영역의 공통부분인 현재의 사각형 영역이 새로이 R에 할당된다. 다음, 참조 번호 340 오브젝트를 검색하면, 역시 사각형 영역이므로 참조 번호 330 사각형 오브젝트와 참조 번호 340 사각형 오브젝트의 공통 부분이 새로이 R에 할당된다. 다음, 참조 번호 350 오브젝트를 검색하면, 수평선 오브젝트이면서 현재의 R을 분할하고 입력받은 두 점(370, 380)이 모두 상기 수평선 아래의 영역으로 존재하므로 이 영역이 새로이 R에 할당된다. 다음, 참조 번호 360 오브젝트를 검색하면, 수직선 오브젝트이면서 현재의 R을 분할하고 있으나 입력받은 수직선을 중심으로 좌우에 분산되어 있으므로 현재의 R이 그대로 유지된다. 이후에 더 이상의 오브젝트가 존재하지 않으므로, 결국 균등 분할하고자 하는 사각형 영역은 참조 번호 340과 350 사각형 오브젝트들의 공통 부분 중 참조 번호 350 수평선 오브젝트에 의해 분할된 하위 부분으로 인식된다.First, let us consider a process of finding a rectangular area to be evenly divided according to FIG. Initially, R will be allocated the entire page area 300. If the first object 310, which is the next object, is searched, it is not a rectangle or a round rectangular object, nor is it a vertical line or a horizontal line. Next, when the reference number 320 is searched, the horizontal line object or the entire page area, which is the current R value, is not divided. Next, when the reference numeral 330 is searched, the current rectangular area, which is a common object of the entire page area and the current rectangular area, is newly allocated to R since it is a rectangular object and includes two input points 370 and 380. Next, when a reference number 340 object is searched, since the rectangular area is also a rectangular area, a common portion between a rectangle 330 and a rectangle 340 is newly allocated to R. [ Next, when a reference number 350 object is searched, since the two points 370 and 380, which are horizontal line objects and the current R is divided and input, exist in the area below the horizontal line, this area is newly allocated to R. Next, when the reference number 360 object is searched, the current R is divided into the vertical line object and the left vertical line, but the current R is maintained as it is. Since there are no more objects thereafter, the rectangular area to be evenly divided is recognized as a lower part divided by reference numeral 350 horizontal line object among the common parts of reference numbers 340 and 350 rectangle objects.

그 다음에 도 1의 130단계에 의한 가로선 분할인지 세로선 분할인지 결정하는 단계는 참조 번호 370에 의한 점과 참조 번호 380에 의한 점 사이의 가로축에 의한 거리와 세로축에 의한 거리를 비교함으로써 이루어진다. 본 실시예에 의하면 가로축에 의한 거리가 세로축에 의한 거리보다 길다고 보아 가로선 분할로서 결정한다. 이와 같은 과정은 사용자가 마우스를 사용하는 경우에 두 점의 좌표로서 정확한 가로선 또는 세로선을 그리지 않더라도, 사용자의 의사를 파악할 수 있도록 하여 사용자의 부담을 줄여준다. 따라서 상기한 바와 같이 결정된 균등 분할하고자하는 사각형 영역에 가로 다중선이 10개 그려짐으로서 11개의 균등 영역으로 분할한다.Next, the step of determining whether the horizontal line segmentation or the vertical line segmentation by the step 130 of FIG. 1 is performed is performed by comparing the distance by the horizontal axis and the vertical axis distance between the point by reference numeral 370 and the point by reference numeral 380. According to this embodiment, the distance by the horizontal axis is longer than the distance by the vertical axis, and is determined as the horizontal line division. This process reduces the burden on the user by allowing the user to grasp the user's intention even when the user does not draw an accurate horizontal line or a vertical line as coordinates of two points when the user uses the mouse. Therefore, 10 horizontal polynomial lines are drawn in the rectangular area determined as described above to be divided into 11 equal areas.

도 4는 상기 과정에 의한 다중선 생성 이후의 페이지 영역을 도시한 것이다.FIG. 4 is a diagram illustrating a page area after generation of a polynomial by the above process.

본 발명에 의하면, 그래픽 화면 처리 시스템에 있어서 가로 또는 세로 다중선의 수와 분할하고자하는 사각형 영역 내의 두 점의 좌표값만을 입력받음에 의해 분할하고자하는 사각형 영역을 지정하고 상기 영역을 균등하게 분할하기 위한 가로 또는 세로 다중선을 생성할 수 있게 되므로, 사용자들이 복잡한 양식의 보고서도 보다 편리하고 빠르게 작성할 수 있게 된다.According to the present invention, in a graphic screen processing system, a rectangular area to be divided is designated by receiving only the number of horizontal or vertical multiplexed lines and coordinate values of two points in a rectangular area to be divided, Since it is possible to generate horizontal or vertical multiple lines, users can write reports in complex form more conveniently and quickly.

Claims (4)

프로세서, 메모리, 그래픽 디스플레이어, 기타 입출력 장치 및 그래픽 처리 소프트웨어로 구성된 그래픽 화면 처리 시스템에서 처리되고 있는 도형, 기호, 문자 스트링의 오브젝트로 구성된 전체 페이지 영역에서 일정한 사각형 영역을 지정하여 그 사각형 영역을 일정한 수로 균등 분할하는 방법에 있어서,A fixed rectangular area is specified in the entire page area composed of objects of graphics, symbols and character strings being processed in a graphic screen processing system composed of a processor, memory, graphic display device, other input / output device and graphic processing software, In the method for uniformly dividing by channels, 사용자로부터 분할하고자하는 가로선의 수와 세로선의 수를 입력받는 제1단계;A first step of receiving from the user the number of horizontal lines and the number of vertical lines to be divided; 사용자로부터 균등 분할하고자하는 사각형 영역에 포함되는 두 점에 대한 좌표값을 입력받는 제2단계;A second step of receiving coordinate values of two points included in a rectangular area to be evenly divided from a user; 상기 두 점에 대한 좌표값을 이용하여, 균등 분할하고자하는 사각형 영역을 찾는 제3단계;A third step of finding a rectangular area to be evenly divided using the coordinate values of the two points; 상기 두 점에 대한 좌표값을 이용하여, 가로선 분할인지 또는 세로선 분할인지를 파악하는 제4단계; 및A fourth step of determining whether a horizontal line segmentation or a vertical line segmentation is performed using the coordinate values of the two points; And 제3단계에서 찾은 상기 균등 분할하고자하는 사각형 영역을 제4단계에 의해 파악한 방식으로 제1단계에서 입력받은 수에서 1더한 수만큼으로 균등 분할하는 제5단계를 포함함을 특징으로 하는 다중선 생성 방법.And a fifth step of uniformly dividing the rectangular area to be divided which is found in the third step into a number obtained by adding one to the number of input in the first step in a manner determined by the fourth step. Way. 제1항에 있어서, 상기 제1단계는2. The method of claim 1, wherein the first step 직전에 사용한 가로선의 수의 값과 세로선의 수의 값을 일정한 저장매체에 저장하여 두었다가, 사용자로부터 상기 값들을 새로이 입력받지 못한 경우에는 상기 저장매체로부터 상기 값들을 입력받도록하는 것을 특징으로하는 다중선 생성 방법.Wherein a value of the number of horizontal lines used immediately before and a value of the number of vertical lines are stored in a predetermined storage medium and when the values are not newly input from the user, the values are input from the storage medium. Generation method. 제1항 또는 제2항에 있어서, 상기 제3단계는The method according to claim 1 or 2, wherein the third step 상기 균등 분할하고자하는 사각형 영역을 R이라 할 때, 상기 그래픽화면 처리 시스템에서 처리되고 있는 전체 페이지 영역의 크기를 R로 두는 초기화 단계;An initializing step of setting the size of the entire page area being processed in the graphic screen processing system to be R, when the rectangular area to be evenly divided is R; 상기 그래픽 화면 처리 시스템에서 처리되고 있는 전체 페이지 영역 상에 있는 모든 오브젝트를 차례로 검색하면서 검색할 다음 오브젝트가 있는지 여부를 확인하여, 다음 오브젝트가 없으면 R을 균등 분할하고자하는 사각형 영역으로 하여 제3단계를 마치고, 다음 오브젝트가 있으면 그 오브젝트가 사각형 또는 둥근 사각형 오브젝트인지 여부를 검색하는 오브젝트 검색 단계;The graphic screen processing system sequentially searches all the objects in the entire page area being processed and determines whether there is a next object to be searched and if there is no next object, An object retrieval step of retrieving whether the object is a rectangular or round rectangular object when the object is present; 상기 오브젝트가 사각형이나 둥근 사각형일 때, 그 오브젝트가 상기 제2단계에서 입력받은 상기 두 점에 대한 좌표값을 모두 포함하는지 여부를 검색하여, 상기 두 점에 대한 좌표값을 모두 포함하면 상기 R의 영역과 새로운 오브젝트의 영역을 함께 포함하는 영역을 새로운 R로 두고 상기 오브젝트 검색 단계를 계속하며, 두 점에 대한 좌표값의 모두를 포함하지 아니하면 바로 상기 오브젝트 검색 단계를 계속하는 사각형 오브젝트 검색 단계; 및When the object is a rectangle or a round rectangle, it is searched whether the object includes all the coordinate values for the two points inputted in the second step, and if the object includes all the coordinate values for the two points, A rectangle object searching step of continuing the object searching step with an area containing a region and a new object area together as a new R, and continuing the object searching step immediately when all of the coordinate values of two points are not included; And 상기 오브젝트가 사각형이나 둥근 사각형이 아닐 때, 그 오브젝트가 수직선이나 수평선이고 R을 분할하는 것이면 분할된 R의 두 영역 중 상기 제2단계에서 입력받은 상기 두 개의 점을 모두 포함하고 있는 영역이 있는지 여부를 검색하여 상기 두 개의 점을 모두 포함하고 있는 영역이 있으면 그 영역을 새로운 R로 두고 상기 오브젝트 검색 단계를 계속하며, 그 오브젝트가 수직선 또는 수평선이 아니거나 수평선 또는 수직선 오브젝트가 R을 분할하지 않거나 분할된 영역 중에 상기 제2단계에서 입력받은 상기 두 개의 점을 포함하는 영역이 없는 경우에는 바로 상기 오브젝트 검색 단계를 계속하는 수직 수평선 오브젝트 검색 단계로 이루어짐을 특징으로 하는 다중선 생성 방법.If the object is not a rectangle or a round rectangle and the object is a vertical line or a horizontal line and R is divided, it is determined whether there is an area including all the two points received in the second step If the object is not a vertical line or a horizontal line, or if a horizontal line or a vertical line object does not divide R or divides R, And continuing the object searching step when there is no region including the two points input in the second step. 제1항 또는 제2항에 있어서, 상기 제4단계는3. The method according to claim 1 or 2, wherein the fourth step 상기 제2단계에서 입력받은 두 개의 점에 대한 좌표값을 각각 (X1, Y1)과 (X2, Y2)라고 할 때, ΔX = |X1 - X2|와 ΔY = |Y1 - Y2|를 계산하는 단계; 및Calculating X = X1 - X2 | and? Y = Y1 - Y2 | when coordinate values of the two points input in the second step are (X1, Y1) and (X2, Y2) ; And 상기 ΔX가 상기 ΔY와 같거나 클 때 가로선 분할로 파악하고, 상기 ΔX가 상기 ΔY보다 작을 때 세로선 분할로 판단하는 단계로 이루어짐을 특징으로하는 다중선 생성 방법.Determining whether the DELTA X is equal to or greater than the DELTA Y, and determining whether the DELTA X is smaller than the DELTA Y, and determining the division by a vertical line when the DELTA X is smaller than the DELTA Y.
KR1019960049345A 1996-10-28 1996-10-28 Method of generating the multi-line in the graphic image processing KR100234337B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1019960049345A KR100234337B1 (en) 1996-10-28 1996-10-28 Method of generating the multi-line in the graphic image processing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1019960049345A KR100234337B1 (en) 1996-10-28 1996-10-28 Method of generating the multi-line in the graphic image processing

Publications (2)

Publication Number Publication Date
KR19980030009A KR19980030009A (en) 1998-07-25
KR100234337B1 true KR100234337B1 (en) 1999-12-15

Family

ID=19479382

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1019960049345A KR100234337B1 (en) 1996-10-28 1996-10-28 Method of generating the multi-line in the graphic image processing

Country Status (1)

Country Link
KR (1) KR100234337B1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100441081B1 (en) * 2002-07-31 2004-07-21 학교법인연세대학교 Methods for calculating the trigonometric function using linear equations
CN111860502A (en) * 2020-07-15 2020-10-30 北京思图场景数据科技服务有限公司 Picture table identification method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
KR19980030009A (en) 1998-07-25

Similar Documents

Publication Publication Date Title
US5889523A (en) Method and apparatus for dynamically grouping a plurality of graphic objects
US20040056900A1 (en) System and method for window priority rendering
US6195664B1 (en) Method and system for controlling the conversion of a file from an input format to an output format
US7017118B1 (en) Method and apparatus for reordering data items
JP2006146884A (en) Electronic document style matrix
JPH086707A (en) Screen-directivity-display processing system
US7675529B1 (en) Method and apparatus to scale graphical user interfaces
JP2006318219A (en) Similar slide retrieval program and retrieval method
WO2020186837A1 (en) Text animation control method and device, storage medium and processor
KR100234337B1 (en) Method of generating the multi-line in the graphic image processing
JP2018067298A (en) Handwritten content editing device and handwritten content editing method
JPH0721007A (en) Information processor and menu selecting system
JP3357760B2 (en) Character / graphic input editing device
JPH04347779A (en) Graphic document processor
KR102300437B1 (en) Electronic document editing apparatus that enables the insertion of special characters at specific locations on the electronic document based on the entered characters and operating method thereof
US5467451A (en) Method of displaying a bounding box using a set aspect ratio and the coordinate ratio of a graphical pointer
EP0220461A2 (en) Three dimensional graphic display with user defined vanishing point
JPH069046B2 (en) Text editing device
US20160062594A1 (en) Boundary Limits on Directional Selection Commands
JPH04101273A (en) Map retrieving method
JP2590327B2 (en) How to manage drawing information
JPS63115217A (en) Character input device
CN114461103A (en) Regional acceleration processing method and device, electronic equipment and storage medium
JPH0325235Y2 (en)
JP3177044B2 (en) Document creation device

Legal Events

Date Code Title Description
A201 Request for examination
E902 Notification of reason for refusal
E701 Decision to grant or registration of patent right
GRNT Written decision to grant
FPAY Annual fee payment

Payment date: 20070830

Year of fee payment: 9

LAPS Lapse due to unpaid annual fee