CN106909283A - Painting canvas display control method and system - Google Patents

Painting canvas display control method and system Download PDF

Info

Publication number
CN106909283A
CN106909283A CN201710031678.XA CN201710031678A CN106909283A CN 106909283 A CN106909283 A CN 106909283A CN 201710031678 A CN201710031678 A CN 201710031678A CN 106909283 A CN106909283 A CN 106909283A
Authority
CN
China
Prior art keywords
image
painting canvas
coordinate
cache
cache image
Prior art date
Legal status (The legal status 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 status listed.)
Granted
Application number
CN201710031678.XA
Other languages
Chinese (zh)
Other versions
CN106909283B (en
Inventor
吕毅
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Guangzhou Shirui Electronics Co Ltd
Original Assignee
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Guangzhou Shirui Electronics Co Ltd
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 Guangzhou Shiyuan Electronics Thecnology Co Ltd, Guangzhou Shirui Electronics Co Ltd filed Critical Guangzhou Shiyuan Electronics Thecnology Co Ltd
Publication of CN106909283A publication Critical patent/CN106909283A/en
Application granted granted Critical
Publication of CN106909283B publication Critical patent/CN106909283B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04845Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range for image manipulation, e.g. dragging, rotation, expansion or change of colour
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/80Creating or modifying a manually drawn or painted image using a manual input device, e.g. mouse, light pen, direction keys on keyboard

Abstract

The present invention relates to a kind of painting canvas display control method and system, when the painting canvas for detecting input shows operational order, the part and painting canvas for obtaining painting canvas predeterminable area are cached in the currently displaying part of screen, obtain corresponding first cache image and the second cache image.Operational order is shown according to painting canvas, the coordinate to be shown on the first cache image corresponding with screen coordinate and the second cache image is obtained respectively.The color of position according to corresponding to the coordinate to be shown on the first cache image and the second cache image, obtains the color of correspondence screen coordinate.Color according to each screen coordinate obtains superimposed image corresponding with painting canvas display operational order and exports to screen to be shown.Obtain the part of painting canvas predeterminable area simultaneously and painting canvas is cached in the currently displaying part of screen, it is displayed on screen after synthesizing to two cache images, avoid and blank occur and influence user to watch during control painting canvas shows, improve viewing convenience.

Description

Painting canvas display control method and system
Technical field
The present invention relates to intelligent terminal technical field, more particularly to a kind of painting canvas display control method and system.
Background technology
With the arrival of informationized society, the development of present information Display Technique is promoted.Drawing and row based on painting canvas Version tool software carries out drawing and typesetting and shows, to watch the information of correlation, for example using more and more extensively using painting canvas Electronic map and lantern slide etc..Observer zooms in and out or translates control by input instruction to painting canvas, so as to required for showing Content checked.
Traditional painting canvas display control method is that the region that will currently render is entered when user attempts to translate or scale painting canvas Row Pan and Zoom, is then rendered on interface and is shown.If painting canvas exceeds current screen display region, translating and contracting In small process, white space can occur in screen periphery, be not easy to user and check.Traditional painting canvas display control method is present The low shortcoming of viewing convenience.
The content of the invention
Based on this, it is necessary to regarding to the issue above, there is provided a kind of to watch convenience painting canvas display control method high and be System.
A kind of painting canvas display control method, comprises the following steps:
When the painting canvas for detecting input shows operational order, the part and the painting canvas for obtaining painting canvas predeterminable area are being shielded The currently displaying part of curtain is cached, and obtains corresponding first cache image and the second cache image;
Operational order is shown according to the painting canvas, first cache image corresponding with screen coordinate and institute are obtained respectively State the coordinate to be shown on the second cache image;
The color of position according to corresponding to the coordinate to be shown on first cache image and second cache image, Obtain the color of correspondence screen coordinate;
Color according to each screen coordinate obtains superimposed image corresponding with painting canvas display operational order and exports extremely Screen is shown.
A kind of painting canvas display control program, including:
Image buffer storage module, for when the painting canvas for detecting input shows operational order, obtaining painting canvas predeterminable area Part and the painting canvas are cached in the currently displaying part of screen, obtain corresponding first cache image and the second caching figure Picture;
Coordinate obtaining module, for showing operational order according to the painting canvas, obtains institute corresponding with screen coordinate respectively State the coordinate to be shown on the first cache image and second cache image;
Color extraction module, for according to the coordinate to be shown on first cache image and second cache image The color of corresponding position, obtains the color of correspondence screen coordinate;
Image synthesis unit, for obtaining corresponding with painting canvas display operational order according to the color of each screen coordinate Superimposed image and exporting to screen is shown.
Above-mentioned painting canvas display control method and system, when the painting canvas for detecting input shows operational order, obtain painting canvas The part of predeterminable area and painting canvas are cached in the currently displaying part of screen, obtain corresponding first cache image and second Cache image.Operational order is shown according to painting canvas, the first cache image corresponding with screen coordinate and the second caching are obtained respectively Coordinate to be shown on image.The face of position according to corresponding to the coordinate to be shown on the first cache image and the second cache image Color, obtains the color of correspondence screen coordinate.Color according to each screen coordinate obtains corresponding folded with painting canvas display operational order Plus image and exporting to screen is shown.After painting canvas display operational order is detected, while obtaining painting canvas predeterminable area Part and painting canvas are cached in the currently displaying part of screen, and two cache images are entered with reference to painting canvas display operational order Row synthesis obtains superimposed image and is displayed on screen, it is to avoid blank occurs during control painting canvas shows and influences user Viewing, improves viewing convenience.
Brief description of the drawings
Fig. 1 is the flow chart of painting canvas display control method in an embodiment;
Fig. 2 is the flow chart of painting canvas display control method in another embodiment;
Fig. 3 is the structure chart of painting canvas display control program in an embodiment;
Fig. 4 is the structure chart of painting canvas display control program in another embodiment.
Specific embodiment
In one embodiment, a kind of painting canvas display control method, it is adaptable to draw, the painting canvas display control in software for composing System.As shown in figure 1, the above method is comprised the following steps:
Step S110:When the painting canvas for detecting input shows operational order, part and the picture of painting canvas predeterminable area are obtained Cloth is cached in the currently displaying part of screen, obtains corresponding first cache image and the second cache image.
Painting canvas display operational order refers to the instruction for carrying out painting canvas display control, and user can be by mouse or touch screen etc. Equipment is input into.The particular type of painting canvas display operational order is not unique, can be the instruction for controlling painting canvas to zoom in and out display, It can also be the instruction for controlling painting canvas to be translated.
Operation is designated as when the painting canvas for detecting input shows operational order to start, to the current display area and picture of screen The part of cloth predeterminable area is cached.Predeterminable area can be chosen according to actual conditions, can be using whole painting canvas as Predeterminable area, be may also be part painting canvas as predeterminable area, such as a screen chi is extended from current display area to surrounding It is very little, using the region after extension as predeterminable area.Additionally, terminating painting canvas display operational order is detected, operation knot is designated as Beam, after operation starts, operation terminate before be designated as during operation carries out, now all operations of user can be marked as into In row.
The concrete mode of detection painting canvas display operational order is not also unique, for example, it may be detecting mouse or touching Touch thing to click on when on painting canvas, be designated as operation and start;Can also, when the animation of a scaling or translation painting canvas is played, move It is designated as starting between drawing at the beginning of playing.
In one embodiment, get the part of painting canvas predeterminable area and painting canvas the currently displaying part of screen it After cache into video card internal memory, obtain corresponding first cache image and the second cache image.Image is directly cached to video memory In, image synthesis is carried out using the hardware-accelerated characteristic of video card, save internal memory and CPU (Central Processing Unit, central processing unit) take.
In one embodiment, in step S110 obtain painting canvas predeterminable area part and the painting canvas in the current of screen Display portion is cached, and obtains corresponding first cache image and the second cache image, including step 112 and step 114.
Step 112:Obtain in part and bitmap caching to the video card internal memory of painting canvas predeterminable area, obtain the first caching figure Picture.
Step 114:Painting canvas is obtained in the currently displaying part of screen and caching to video card internal memory, the second caching figure is obtained Picture.
When part to the video card internal memory of painting canvas predeterminable area is cached, the bitmap caching of lower quality is used, it is to avoid when need The part to be cached takes excessive video card internal memory when excessive, improve video card capabilities.
Step S120:Operational order is shown according to painting canvas, obtain respectively corresponding with screen coordinate the first cache image and Coordinate to be shown on second cache image.
Show that operational order can determine that screen coordinate and two cache image movement recoil target corresponding relations according to painting canvas, Coordinate to be shown corresponding with the screen coordinate on two cache images just can be found according to the corresponding relation.It is to translate painting canvas Example, painting canvas translates the coordinate (x, y) of forth screen coordinate (X, Y) the first cache image of correspondence, if painting canvas shows operational order by picture Cloth level is moved to the left h, then move after screen coordinate (X, Y) correspondence the first cache image coordinate to be shown for (x+h, y).Together Reason, can obtain the coordinate to be shown on the second cache image corresponding with screen coordinate.
Step S130:The face of position according to corresponding to the coordinate to be shown on the first cache image and the second cache image Color, obtains the color of correspondence screen coordinate.
After the coordinate to be shown on the first cache image and the second cache image is got, directly can be according to be shown Coordinate extracts the color of correspondence position, and and then is calculated the color of screen coordinate.Specifically, color include color value and thoroughly Lightness, the color value and transparency of position according to corresponding to coordinate to be shown, it may be determined that correspondence screen coordinate color value and thoroughly Lightness, so that it is determined that the color of screen coordinate.
In one embodiment, step S130 includes step 132 to step 138.
Step 132:Judge whether the coordinate to be shown on the first cache image and the second cache image caches beyond correspondence The image boundary of image.
Judge whether the coordinate to be shown determined on the first cache image and the second cache image caches beyond correspondence respectively The image boundary of image, so that subsequent step is processed according to judged result correspondence.
Step 134:When the coordinate to be shown on the first cache image and the second cache image exceedes correspondence cache image Image boundary when, will correspondence screen coordinate be set to Transparent color.
If the coordinate to be shown determined on two cache images exceedes the image boundary of correspondence cache image, will be right Screen coordinate is answered to be set to Transparent color.
Step 136:When the coordinate to be shown on the first cache image and the second cache image has one without departing from correspondence During the image boundary of cache image, the face of position corresponding to the coordinate of the image boundary without departing from correspondence cache image is obtained Color, obtains the color of correspondence screen coordinate.
If there is the image boundary of the coordinate to be shown of without departing from correspondence cache image in two cache images, will The color of the position corresponding to coordinate to be shown is used as the color for corresponding to screen coordinate.
Step 138:When the coordinate to be shown on the first cache image and the second cache image is without departing from correspondence caching figure During the image boundary of picture, the color to the coordinate correspondence position to be shown on the first cache image and the second cache image is folded Plus, obtain the color of correspondence screen coordinate.
If the coordinate to be shown determined on two cache images is all not above correspondence image border, two are waited to show Show that the color of coordinate position is overlapped, obtain the color of correspondence screen coordinate.Specifically, in the present embodiment, step 138 It is overlapped using transparency Superposition Formula, the second cache image is added on the first cache image, is obtained correspondence screen and sit Target color, specially:
Transparency=1- (1- transparencies 1) * (1- transparencies 2)
Color value=color value 2* transparencies 2* (1- transparencies 1)+color value 1* transparencies 1
Wherein, color value 1 and transparency 1 are respectively the color value of the coordinate correspondence position to be shown on the first cache image And transparency, color value 2 and transparency 2 are respectively the color value and thoroughly of the coordinate correspondence position to be shown on the second cache image Lightness.Thus the transparency and color value of screen coordinate can be respectively calculated, so that it is determined that the color of screen coordinate.
Specifically, in step S120 and step S130, calculate the first cache image corresponding with screen coordinate and second and delay Deposit the coordinate to be shown on image, and the position according to corresponding to the coordinate to be shown on the first cache image and the second cache image The algorithm that the color put obtains the color of correspondence screen coordinate is as follows:
Wherein, the row of algorithm the 1st calculates the coordinate that screen coordinate corresponds to the first cache image, and the 2nd row calculates this screen seat Mark corresponds to the coordinate of the second cache image.Then judge that whether the coordinate for calculating, beyond correspondence image border, is tied according to judgement Fruit correspondence is processed, and obtains overlay color of two cache images under this screen coordinate.
Step S140:Color according to each screen coordinate is obtained and the painting canvas corresponding superimposed image of display operational order and defeated Go out to screen and shown.
Each coordinate of viewing area, is calculated the color of each screen coordinate, you can on screen on traverses screen The complete superimposed image of display.
Step S120 to step S140 is when during operation is carried out, painting canvas current display area and predeterminable area to be carried out Cache, carrying out synthesis to two cache images when rendering shows.It is appreciated that the synthesis of step S120 to step S140 shows Operation can also be carried out in video card, using the powerful computation capability of video card, improve combined coefficient.
Above-mentioned painting canvas display control method, after painting canvas display operational order is detected, while obtaining painting canvas predeterminable area Part and painting canvas cached in the currently displaying part of screen, and combine painting canvas show operational order to two cache images Synthesize and obtain superimposed image and be displayed on screen, it is to avoid blank occur during control painting canvas show and influence use Family is watched, and improves viewing convenience.In whole control process, painting canvas shows completely all the time for user, simply in week Enclose subregion and have switched definition, user will not experience film flicker sense.
In one embodiment, as shown in Fig. 2 after step S140, painting canvas display control method may also include step S150 and step S160.
Step S150:Whether detection painting canvas display operational order terminates.
Terminate painting canvas display operational order is detected, be designated as operation and terminate, judge whether painting canvas display operational order is tied The mode of beam is not unique, can remove to be designated as operation knot from painting canvas by mouse up or last touch point Beam;Can also be that the end time that animation is played is designated as operation and terminates when the animation of a scaling or translation painting canvas is played. When detect painting canvas display operational order terminate after, then carry out step S160.
Step S160:The image that acquisition curtain shows is cached, and obtains the second new cache image.
The currently displaying image of curtain is obtained again to be cached, and obtains the second new cache image, and return to step S120.Can separately build in a thread and wait for an opportunity to cache current display area part again, be operated and rendered in user Performed when thread is idle, or constantly performed.In the present embodiment, step is performed when user operates and render thread idle S160, optimizes resource.
In the present embodiment, when showing that operational order carries out display control to painting canvas according to painting canvas, painting canvas is obtained in real time and is worked as Preceding display portion is updated to the second cache image, so that user is during operation, main region be all the time clearly, To improve display effect.
In one embodiment, with continued reference to Fig. 2, at the end of painting canvas display operational order, painting canvas display control method Also included step S170.
Step S170:Remove the cache image of caching.At the end of operation, first cache image and second of caching is removed Cache image, it is to avoid take spatial cache, so that next time carries out display control, operation ease according to user's operation.
In one embodiment, a kind of painting canvas display control program, it is adaptable to draw, the painting canvas display control in software for composing System.As shown in figure 3, the system includes image buffer storage module 110, coordinate obtaining module 120, color extraction module 130 and image Synthesis module 140.
Image buffer storage module 110 is used to, when the painting canvas for detecting input shows operational order, obtain painting canvas predeterminable area Part and painting canvas cached in the currently displaying part of screen, obtain corresponding first cache image and the second caching figure Picture.
Painting canvas display operational order refers to the instruction for carrying out painting canvas display control, and user can be by mouse or touch screen etc. Equipment is input into.The particular type of painting canvas display operational order is not unique, and detection painting canvas shows the concrete mode of operational order It is not unique.Predeterminable area can be chosen according to actual conditions, can be that, as predeterminable area, may also be whole painting canvas portion Divide painting canvas as predeterminable area.
In one embodiment, image buffer storage module 110 get painting canvas predeterminable area part and painting canvas in screen Cached after currently displaying part into video card internal memory, obtain corresponding first cache image and the second cache image.By image Directly it is cached in video memory, image synthesis is carried out using the hardware-accelerated characteristic of video card, saves internal memory and CPU takes.
In one embodiment, image buffer storage module 110 includes the first image buffer storage unit and the second image buffer storage unit.
First image buffer storage unit is used to, when the painting canvas for detecting input shows operational order, obtain painting canvas predeterminable area Part and bitmap caching to video card internal memory in, obtain the first cache image.
Second image buffer storage unit is used to, when the painting canvas for detecting input shows operational order, obtain painting canvas in screen Currently displaying part is simultaneously cached into video card internal memory, obtains the second cache image.
When part to the video card internal memory of painting canvas predeterminable area is cached, the bitmap caching of lower quality is used, it is to avoid when need The part to be cached takes excessive video card internal memory when excessive, improve video card capabilities.
Coordinate obtaining module 120 is used to, according to painting canvas display operational order, corresponding with screen coordinate first is obtained respectively Coordinate to be shown on cache image and the second cache image.
Show that operational order can determine that screen coordinate and two cache image movement recoil target corresponding relations according to painting canvas, Coordinate to be shown corresponding with the screen coordinate on two cache images just can be found according to the corresponding relation.
Color extraction module 130 is used for according to corresponding to the coordinate to be shown on the first cache image and the second cache image The color of position, obtains the color of correspondence screen coordinate.
After the coordinate to be shown on the first cache image and the second cache image is got, directly can be according to be shown Coordinate extracts the color of correspondence position, and and then is calculated the color of screen coordinate.Specifically, color include color value and thoroughly Lightness, the color value and transparency of position according to corresponding to coordinate to be shown, it may be determined that correspondence screen coordinate color value and thoroughly Lightness, so that it is determined that the color of screen coordinate.
In one embodiment, color extraction module 130 includes that coordinate judging unit, the first extraction unit, second are extracted Unit and the 3rd extraction unit.
Coordinate judging unit is used to judge whether the coordinate to be shown on the first cache image and the second cache image exceeds The image boundary of correspondence cache image.
First extraction unit is used to exceed correspondence when the coordinate to be shown on the first cache image and the second cache image During the image boundary of cache image, correspondence screen coordinate is set to Transparent color.
Second extraction unit is used for having one not when the coordinate to be shown on the first cache image and the second cache image During beyond the image boundary of correspondence cache image, position corresponding to the coordinate of the image boundary without departing from correspondence cache image is obtained The color put, obtains the color of correspondence screen coordinate.
3rd extraction unit is used for when the coordinate to be shown on the first cache image and the second cache image is without departing from right When answering the image boundary of cache image, to the face of the coordinate correspondence position to be shown on the first cache image and the second cache image Color is overlapped, and obtains the color of correspondence screen coordinate.
In the present embodiment, the 3rd extraction unit is overlapped using transparency Superposition Formula, by the superposition of the second cache image Onto the first cache image, the color of correspondence screen coordinate is obtained, specially:
Transparency=1- (1- transparencies 1) * (1- transparencies 2)
Color value=color value 2* transparencies 2* (1- transparencies 1)+color value 1* transparencies 1
Wherein, color value 1 and transparency 1 are respectively the color value of the coordinate correspondence position to be shown on the first cache image And transparency, color value 2 and transparency 2 are respectively the color value and thoroughly of the coordinate correspondence position to be shown on the second cache image Lightness.Thus the transparency and color value of screen coordinate can be respectively calculated, so that it is determined that the color of screen coordinate.
Image synthesis unit 140 is used to obtain corresponding folded with painting canvas display operational order according to the color of each screen coordinate Plus image and exporting to screen is shown.
Each coordinate of viewing area, is calculated the color of each screen coordinate, you can on screen on traverses screen The complete superimposed image of display.
Coordinate obtaining module 120, color extraction module 130 and image synthesis unit 140 are when during operation is carried out, to incite somebody to action Painting canvas current display area and predeterminable area are cached, and carrying out synthesis to two cache images when rendering shows.Can manage Solution, the synthesis display operation of coordinate obtaining module 120, color extraction module 130 and image synthesis unit 140 can also be aobvious Carried out in card, using the powerful computation capability of video card, improve combined coefficient.
Above-mentioned painting canvas display control program, after painting canvas display operational order is detected, while obtaining painting canvas predeterminable area Part and painting canvas cached in the currently displaying part of screen, and combine painting canvas show operational order to two cache images Synthesize and obtain superimposed image and be displayed on screen, it is to avoid blank occur during control painting canvas show and influence use Family is watched, and improves viewing convenience.In whole control process, painting canvas shows completely all the time for user, simply in week Enclose subregion and have switched definition, user will not experience film flicker sense.
In one embodiment, as shown in figure 4, painting canvas display control program also includes instruction detection module 150.
Instruction detection module 150 is used to obtain aobvious with painting canvas according to the color of each screen coordinate in image synthesis unit 140 Show the corresponding superimposed image of operational order and export shown to screen after, detection painting canvas display operational order whether tie Beam;If it is not, the image that then acquisition curtain shows is cached, the second new cache image is obtained, and control coordinate obtaining module 120 show operational order again according to painting canvas, the first cache image corresponding with screen coordinate and described second is obtained respectively and is delayed Deposit the coordinate to be shown on image.
Terminate painting canvas display operational order is detected, be designated as operation and terminate, judge whether painting canvas display operational order is tied The mode of beam is not unique.Can separately build in a thread and wait for an opportunity to cache current display area part again, can be specifically with Family performs, or constantly performs when operating and render thread idle.In the present embodiment, instruction detection module 150 is in user The image that acquisition curtain shows when operating and render the thread free time is cached, and optimizes resource.
In the present embodiment, when showing that operational order carries out display control to painting canvas according to painting canvas, painting canvas is obtained in real time and is worked as Preceding display portion is updated to the second cache image, so that user is during operation, main region be all the time clearly, To improve display effect.
In one embodiment, with continued reference to Fig. 4, painting canvas display control program also includes that caching removes module 160.
Caching removes module 160 to be used at the end of painting canvas display operational order, remove the cache image of caching.As behaviour At the end of work, remove caching the first cache image and the second cache image, it is to avoid take spatial cache, so as to next time according to Family operation carries out display control, operation ease.
Each technical characteristic of embodiment described above can be combined arbitrarily, to make description succinct, not to above-mentioned reality Apply all possible combination of each technical characteristic in example to be all described, as long as however, the combination of these technical characteristics is not deposited In contradiction, the scope of this specification record is all considered to be.
Embodiment described above only expresses several embodiments of the invention, and its description is more specific and detailed, but simultaneously Can not therefore be construed as limiting the scope of the patent.It should be pointed out that coming for one of ordinary skill in the art Say, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to protection of the invention Scope.Therefore, the protection domain of patent of the present invention should be determined by the appended claims.

Claims (10)

1. a kind of painting canvas display control method, it is characterised in that comprise the following steps:
When the painting canvas for detecting input shows operational order, the part of acquisition painting canvas predeterminable area and the painting canvas are in screen Currently displaying part is cached, and obtains corresponding first cache image and the second cache image;
Operational order is shown according to the painting canvas, corresponding with screen coordinate first cache image and described the are obtained respectively Coordinate to be shown on two cache images;
The color of position, obtains according to corresponding to the coordinate to be shown on first cache image and second cache image The color of correspondence screen coordinate;
Color according to each screen coordinate obtains superimposed image corresponding with painting canvas display operational order and exports to screen Shown.
2. painting canvas display control method according to claim 1, it is characterised in that the portion of the acquisition painting canvas predeterminable area Divide and the painting canvas is cached in the currently displaying part of screen, obtain corresponding first cache image and the second cache image The step of, comprise the following steps:
Obtain in part and bitmap caching to the video card internal memory of painting canvas predeterminable area, obtain the first cache image;
The painting canvas is obtained in the currently displaying part of screen and caching to video card internal memory, the second cache image is obtained.
3. painting canvas display control method according to claim 1, it is characterised in that described according to first cache image With the color of position corresponding to the coordinate to be shown on second cache image, the step of the color of correspondence screen coordinate is obtained Suddenly, comprise the following steps:
Judge the coordinate to be shown on first cache image and second cache image whether beyond correspondence cache image Image boundary;
When the coordinate to be shown on first cache image and second cache image exceedes the figure of correspondence cache image During as border, correspondence screen coordinate is set to Transparent color;
Cached without departing from correspondence when the coordinate to be shown on first cache image and second cache image has one During the image boundary of image, the color of position corresponding to the coordinate of the image boundary without departing from correspondence cache image is obtained, obtained To the color of correspondence screen coordinate;
When the coordinate to be shown on first cache image and second cache image is without departing from correspondence cache image During image boundary, the color to the coordinate correspondence position to be shown on first cache image and second cache image is entered Row superposition, obtains the color of correspondence screen coordinate.
4. painting canvas display control method according to claim 2, it is characterised in that the color according to each screen coordinate Obtain with the painting canvas corresponding superimposed image of display operational order and export to screen shown the step of after, also include Following steps:
Detect whether the painting canvas display operational order terminates;
If it is not, then obtain the image that the curtain shows being cached, the second new cache image is obtained, and return to the basis The painting canvas shows operational order, and first cache image corresponding with screen coordinate and the second caching figure are obtained respectively As the step of upper coordinate to be shown.
5. painting canvas display control method according to claim 4, it is characterised in that when painting canvas display operational order terminates When, also including remove caching cache image the step of.
6. a kind of painting canvas display control program, it is characterised in that including:
Image buffer storage module, for when the painting canvas for detecting input shows operational order, obtaining the part of painting canvas predeterminable area Cached in the currently displaying part of screen with the painting canvas, obtained corresponding first cache image and the second cache image;
Coordinate obtaining module, for showing operational order according to the painting canvas, obtains corresponding with screen coordinate described the respectively Coordinate to be shown on one cache image and second cache image;
Color extraction module, for right according to the coordinate to be shown institute on first cache image and second cache image The color of position is answered, the color of correspondence screen coordinate is obtained;
Image synthesis unit, for obtaining superposition corresponding with painting canvas display operational order according to the color of each screen coordinate Image and exporting to screen is shown.
7. painting canvas display control program according to claim 6, it is characterised in that described image cache module includes:
First image buffer storage unit, for when the painting canvas for detecting input shows operational order, obtaining painting canvas predeterminable area In part and bitmap caching to video card internal memory, the first cache image is obtained;
Second image buffer storage unit, for when the painting canvas for detecting input shows operational order, obtaining the painting canvas in screen Currently displaying part and cache in video card internal memory, obtain the second cache image.
8. painting canvas display control program according to claim 6, it is characterised in that the color extraction module includes:
Coordinate judging unit, for whether judging the coordinate to be shown on first cache image and second cache image Beyond the image boundary of correspondence cache image;
First extraction unit, for exceeding when the coordinate to be shown on first cache image and second cache image During the image boundary of correspondence cache image, correspondence screen coordinate is set to Transparent color;
Second extraction unit, for having one when the coordinate to be shown on first cache image and second cache image It is individual without departing from correspondence cache image image boundary when, obtain this without departing from correspondence cache image image boundary coordinate institute it is right The color of position is answered, the color of correspondence screen coordinate is obtained;
3rd extraction unit, for not surpassing when the coordinate to be shown on first cache image and second cache image When going out the image boundary of correspondence cache image, to the coordinate to be shown on first cache image and second cache image The color of correspondence position is overlapped, and obtains the color of correspondence screen coordinate.
9. painting canvas display control program according to claim 7, it is characterised in that described also including instruction detection module Instruction detection module is used to be obtained showing operational order with the painting canvas according to the color of each screen coordinate in image synthesis unit After corresponding superimposed image and exporting is shown to screen, detect whether painting canvas display operational order terminates;If it is not, Then obtain the image that the curtain shows to be cached, obtain the second new cache image, and control the coordinate obtaining module Operational order is shown again according to the painting canvas, corresponding with screen coordinate first cache image and described the are obtained respectively Coordinate to be shown on two cache images.
10. the painting canvas display control program stated according to claim 9, it is characterised in that also remove module including caching, it is described slow Depositing removing module is used at the end of painting canvas display operational order, remove the cache image of caching.
CN201710031678.XA 2016-11-01 2017-01-17 Canvas display control method and system Active CN106909283B (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN2016109372761 2016-11-01
CN201610937276 2016-11-01

Publications (2)

Publication Number Publication Date
CN106909283A true CN106909283A (en) 2017-06-30
CN106909283B CN106909283B (en) 2020-03-06

Family

ID=59206980

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710031678.XA Active CN106909283B (en) 2016-11-01 2017-01-17 Canvas display control method and system

Country Status (1)

Country Link
CN (1) CN106909283B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108846875A (en) * 2018-04-26 2018-11-20 广州视源电子科技股份有限公司 Shape data treating method and apparatus
CN110930857A (en) * 2019-05-31 2020-03-27 上海华兴数字科技有限公司 Method and device for drawing scattered points
CN113407082A (en) * 2021-06-23 2021-09-17 青岛海信移动通信技术股份有限公司 Font color control method applied to terminal equipment and related device

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2001061520A1 (en) * 2000-02-20 2001-08-23 Anysoft Ltd. Method for constructing and storing a set of operations from commands intended for drawing pictures on the screen
US20040227767A1 (en) * 2002-06-20 2004-11-18 Alberto Baroncelli Vector graphics circuit accelerator for display systems
CN1601562A (en) * 2003-09-25 2005-03-30 索尼株式会社 Image processing apparatus and method of same
CN101593354A (en) * 2009-07-01 2009-12-02 上海可鲁系统软件有限公司 A kind of method that redraws and device of two-dimension vector graphics
CN102012924A (en) * 2010-11-29 2011-04-13 深圳市融创天下科技发展有限公司 Map display method and system and mobile terminal
CN103268620A (en) * 2013-04-28 2013-08-28 华为技术有限公司 Graphic processing method, graphic processing device and terminal device
CN104077100A (en) * 2014-06-27 2014-10-01 广东威创视讯科技股份有限公司 Composite buffer area image display method and device
CN104793945A (en) * 2015-04-27 2015-07-22 深圳市美贝壳科技有限公司 Large-batch picture displaying method for preventing memory overflow and device thereof

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2001061520A1 (en) * 2000-02-20 2001-08-23 Anysoft Ltd. Method for constructing and storing a set of operations from commands intended for drawing pictures on the screen
US20040227767A1 (en) * 2002-06-20 2004-11-18 Alberto Baroncelli Vector graphics circuit accelerator for display systems
CN1601562A (en) * 2003-09-25 2005-03-30 索尼株式会社 Image processing apparatus and method of same
CN101593354A (en) * 2009-07-01 2009-12-02 上海可鲁系统软件有限公司 A kind of method that redraws and device of two-dimension vector graphics
CN102012924A (en) * 2010-11-29 2011-04-13 深圳市融创天下科技发展有限公司 Map display method and system and mobile terminal
CN103268620A (en) * 2013-04-28 2013-08-28 华为技术有限公司 Graphic processing method, graphic processing device and terminal device
CN104077100A (en) * 2014-06-27 2014-10-01 广东威创视讯科技股份有限公司 Composite buffer area image display method and device
CN104793945A (en) * 2015-04-27 2015-07-22 深圳市美贝壳科技有限公司 Large-batch picture displaying method for preventing memory overflow and device thereof

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108846875A (en) * 2018-04-26 2018-11-20 广州视源电子科技股份有限公司 Shape data treating method and apparatus
CN110930857A (en) * 2019-05-31 2020-03-27 上海华兴数字科技有限公司 Method and device for drawing scattered points
CN110930857B (en) * 2019-05-31 2022-04-15 上海华兴数字科技有限公司 Method and device for drawing scattered points
CN113407082A (en) * 2021-06-23 2021-09-17 青岛海信移动通信技术股份有限公司 Font color control method applied to terminal equipment and related device
CN113407082B (en) * 2021-06-23 2023-09-12 青岛海信移动通信技术有限公司 Font color control method and related device applied to terminal equipment

Also Published As

Publication number Publication date
CN106909283B (en) 2020-03-06

Similar Documents

Publication Publication Date Title
US10600169B2 (en) Image processing system and image processing method
JP5280503B2 (en) Image display method, shared board system
US8538144B2 (en) Methods and systems for color correction of 3D images
CN108446694B (en) Target detection method and device
JP7062506B2 (en) Image processing equipment, image processing methods, and programs
CN106909283A (en) Painting canvas display control method and system
CN106991711A (en) Person's handwriting edit methods and system
CN113126862B (en) Screen capture method and device, electronic equipment and readable storage medium
CN113794829B (en) Shooting method and device and electronic equipment
US20130300742A1 (en) Display control apparatus,display control method, and program
JP3411469B2 (en) Frame multiplex image creation method
CN109389558B (en) Method and device for eliminating image edge saw teeth
CN102572466A (en) Display processing apparatus, display processing method, and display processing program
CN110766617B (en) Rendering acceleration method capable of reducing sampling number and with dynamic blurring
CN110163055A (en) Gesture identification method, device and computer equipment
CN107644451B (en) Animation display method and device
JP2008306330A (en) Information processor, motion vector generating program, and interpolated image generating program
JP6947939B2 (en) Image generator, image generation method and program
CN106528161A (en) Terminal equipment, page display processing device and method
CN113691737B (en) Video shooting method and device and storage medium
CN112513940A (en) Alpha value determination device, alpha value determination method, program, and data structure of image data
CN114066715A (en) Image style migration method and device, electronic equipment and storage medium
CN112882788B (en) Method for eliminating 5G mobile terminal screen smear and storage device
JP2002095012A (en) Device and method for generating stereo image
CN113192160A (en) Method for realizing slide switching effect, storage medium and computer

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant