CN103593862A - Image display method and control unit - Google Patents

Image display method and control unit Download PDF

Info

Publication number
CN103593862A
CN103593862A CN201310595468.5A CN201310595468A CN103593862A CN 103593862 A CN103593862 A CN 103593862A CN 201310595468 A CN201310595468 A CN 201310595468A CN 103593862 A CN103593862 A CN 103593862A
Authority
CN
China
Prior art keywords
control module
pixel
graphics field
rgba value
interior zone
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.)
Pending
Application number
CN201310595468.5A
Other languages
Chinese (zh)
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.)
Vtron Technologies Ltd
Original Assignee
Vtron Technologies 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 Vtron Technologies Ltd filed Critical Vtron Technologies Ltd
Priority to CN201310595468.5A priority Critical patent/CN103593862A/en
Publication of CN103593862A publication Critical patent/CN103593862A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Controls And Circuits For Display Device (AREA)
  • Control Of Indicators Other Than Cathode Ray Tubes (AREA)

Abstract

The embodiment of the invention discloses an image display method and a control unit. The image display method comprises the steps that the control unit receives an operating instruction input by a user, calls a preset picture which is stored in a local hard disk in advance according to the operating instruction, and generates a corresponding display image according to the operating instruction and the preset picture, and the control unit carries out texture mapping on the display image to a window used for displaying an operation interface so as to enable the display image to be displayed. According to the image display method and the control unit, due to the fact that when the picture is drawn, the preset picture can be called according to the operating instruction of the user, the user can carry out operation that the preset picture can be generated according to the image which cannot be drawn by a rendering engine or cannot be displayed, the control unit carries out corresponding processing on the preset picture according to the operating instruction of the user, the control unit can generate the image needed by the user, the user cannot be limited by the display mode provided by the rendering engine, and rapid and convenient display of the image is achieved.

Description

A kind of method for displaying image and control module
Technical field
The present invention relates to computer picture display technique field, in particular a kind of method for displaying image and control module.
Background technology
Along with the development of computer image technology, computer animation and image are processed and are widely used in every field.When user need to carry out image processing in computer applied algorithm, generally need to utilize the operating system of computing machine, the render engine that hardware platform or other third parties provide is drawn, the GDI/GDI+/DX providing such as Microsoft, or Open GL, Open GLES etc., render engine provides the display packing of image, and application program can be called these methods and remove to show corresponding image.
The interface that general render engine provides can carry out a little, line, the demonstration of face and other graphic images.And utilize generally fairly simple convenience all of drafting that interface that these engines provide carries out image, for user's drawing image has brought convenience.
But, under some environment, can not carry out by render engine the drafting of image, or in specific environment, the engine providing is not supported the direct demonstration of complicated image.As render engine Open GLES only provides point, line and triangle display mode.As will be shown Else Rule image in the equipment based on this render engine, as circular or square, need the own algorithm for design of user.For example, when user need to show circle, the method that user can infinitely approach by inscribed polygon shape; Show that round dot need to carry out smoothing processing to a square point.These methods are more complicated all, also needs to consume the more cpu time, for user has brought inconvenience.
Summary of the invention
The embodiment of the present invention provides a kind of method for displaying image and control module, by the embodiment of the present invention, can be made user conveniently draw and be shown image.
, wherein, comprising:
Control module receives the operational order of user's input;
Described control module is transferred pre-stored preset picture in local hard drive according to described operational order, and generates corresponding demonstration image according to described operational order and described preset picture;
The window that described control module is mapped to described demonstration image texture for operation display interface shows.
Described method for displaying image, wherein, the operational order that described control module receives user's input specifically comprises:
Described control module receives the operational order in graphing region or the operational order of graphing interior zone of user's input.
Described method for displaying image, wherein, described control module is transferred pre-stored preset picture in local hard drive according to described operational order, and according to operational order and described preset picture, generates corresponding demonstration image and specifically comprise:
Described control module is transferred the preset picture of RGBA form according to the operational order in the described graphing region of user's input, described preset picture is provided with graphics field, figure interior zone and non-graphics field, and the RGBA value of described graphics field and the RGBA value of described figure interior zone are unequal, and the RGBA value of described non-graphics field is 0;
Described control module obtains respectively the RGBA value of described figure interior zone and described graphics field;
Described control module travels through all pixels of described preset picture, and obtains the RGBA value of each pixel;
If the RGBA value of the pixel that described control module gets equals the RGBA value of described figure interior zone, the RGBA value that described control module is positioned at the pixel of described figure interior zone is set to 0;
If the RGBA value of the pixel that described control module gets equals the RGBA value of described non-graphics field, described control module is not processed being positioned at the pixel of described non-graphics field;
If the RGBA value of the pixel that described control module gets equals the RGBA value of described graphics field, described control module judges whether user inputs the first color setting operation instruction;
If not, described control module is not processed being positioned at the pixel of described graphics field;
If so, described control module obtains the RGBA value corresponding with the described first color setting operation instruction of user's input;
The RGBA value that described control module is positioned at the pixel of described graphics field is set to the RGBA value corresponding with described the first color setting operation instruction and equates;
Described control module generates graphics field according to the pixel that is positioned at described graphics field and shows image.
Described method for displaying image, wherein, described control module is transferred pre-stored preset picture in local hard drive according to described operational order, and according to operational order and described preset picture, generates corresponding demonstration image and specifically comprise:
Described control module is transferred the preset picture of RGBA form according to the operational order of the described graphing interior zone of user's input, described preset picture is provided with graphics field, figure interior zone and non-graphics field, and the RGBA value of described graphics field and the RGBA value of described figure interior zone are unequal, and the RGBA value of described non-graphics field is 0;
Described control module obtains respectively the RGBA value of described figure interior zone and described graphics field, and wherein, the RGBA value of described non-graphics field is 0;
Described control module travels through all pixels of described preset picture, and obtains the RGBA value of each pixel;
If the RGBA value of the pixel that described control module gets equals the RGBA value of described non-graphics field, described control module is not processed being positioned at the pixel of described non-graphics field;
If the RGBA value of the pixel that described control module gets equals the RGBA value of described graphics field, the RGBA value that described control module is positioned at the pixel of described graphics field is set to 0;
If the RGBA value of the pixel that described control module gets equals the RGBA value of described figure interior zone, described control module judges whether user inputs the second color setting operation instruction;
If not, described control module is not processed being positioned at the pixel of described figure interior zone;
If so, described control module obtains the RGBA value corresponding with the described second color setting operation instruction of user's input;
The RGBA value that described control module is positioned at the pixel of described figure interior zone is set to the RGBA value corresponding with described the second color setting operation instruction and equates;
Described control module generates figure interior zone according to the pixel that is positioned at described figure interior zone and shows image.
Described method for displaying image, wherein, described control module is mapped to window for operation display interface by described demonstration image texture and shows specifically and comprise:
The graphics field that described control module receives user's input shows picture size parameters;
Described control module shows that according to described graphics field picture size parameters shows that by described graphics field image texture is mapped to window and shows, so that the described graphics field that described window shows shows the size of image, shows that with described graphics field picture size parameters equates.
Described method for displaying image, wherein, described control module is mapped to window for operation display interface by described demonstration image texture and shows specifically and comprise:
The figure interior zone that described control module receives user's input shows picture size parameters;
Described control module shows that according to described figure interior zone picture size parameters shows that by described figure interior zone image texture is mapped to window and shows, so that the described figure interior zone that described window shows shows the size of image, shows that with described figure interior zone picture size parameters equates.
, wherein, comprising:
Operational order receiver module, for receiving the operational order of user's input;
Show image generation module, for transfer the pre-stored preset picture at local hard drive according to described operational order, and generate corresponding demonstration image according to operational order and described preset picture;
Display module, shows for the window that described demonstration image texture is mapped to for operation display interface.
Described control module, wherein, described operational order receiver module specifically comprises:
First receives submodule, for receiving the operational order in the graphing region of user's input;
Second receives submodule, for receiving the operational order of the graphing interior zone of user's input.
Described control module, wherein, described demonstration image generation module specifically comprises:
The first preset picture is transferred submodule, for transfer the preset picture of RGBA form according to the operational order in the described graphing region of user's input, described preset picture is provided with graphics field, figure interior zone and non-graphics field, and the RGBA value of described graphics field and the RGBA value of described figure interior zone are unequal, and the RGBA value of described non-graphics field is 0;
The one RGBA value is obtained submodule, for obtaining respectively the RGBA value of described figure interior zone and described graphics field;
The first traversal submodule, travels through for all pixels to described preset picture, and obtains the RGBA value of each pixel;
Figure interior zone pixel arranges the first submodule, if equal the RGBA value of described figure interior zone for the RGBA value of the pixel that gets, the RGBA value that is positioned at the pixel of described figure interior zone is set to 0;
Non-graphics field pixel arranges the first submodule, if equal the RGBA value of described non-graphics field for the RGBA value of the pixel that gets, to being positioned at the pixel of described non-graphics field, does not process;
Graphics field pixel arranges the first submodule, if the RGBA value of the pixel getting for control module equals the RGBA value of described graphics field, judges whether user inputs the first color setting operation instruction; If not, described control module is not processed being positioned at the pixel of described graphics field; If so, described control module to obtain the RGBA value corresponding with the described first color setting operation instruction of user input equal;
Graphics field shows that image generates submodule, for generating graphics field according to the pixel that is positioned at described graphics field, shows image.
Described control module, wherein, described demonstration image generation module also comprises:
The second preset picture is transferred submodule, for transfer the preset picture of RGBA form according to the operational order in the described graphing region of user's input, described preset picture is provided with graphics field, figure interior zone and non-graphics field, and the RGBA value of described graphics field and the RGBA value of described figure interior zone are unequal, and the RGBA value of described non-graphics field is 0;
The 2nd RGBA value is obtained submodule, for obtaining respectively the RGBA value of described figure interior zone and described graphics field;
The second traversal submodule, travels through for all pixels to described preset picture, and obtains the RGBA value of each pixel;
Non-graphics field pixel arranges the second submodule, if equal the RGBA value of described non-graphics field for the RGBA value of the pixel that gets, to being positioned at the pixel of described non-graphics field, does not process;
Graphics field pixel arranges the second submodule, if equal the RGBA value of described graphics field for the RGBA value of the pixel that gets, the RGBA value that is positioned at the pixel of described graphics field is set to 0;
Figure interior zone pixel arranges the second submodule, if equal the RGBA value of described figure interior zone for the RGBA value of the pixel that gets, judges whether user inputs the second color setting operation instruction; If not, to being positioned at the pixel of described figure interior zone, do not process; If so, obtain the RGBA value corresponding with the described second color setting operation instruction of user's input; The RGBA value that is positioned at the pixel of described figure interior zone is set to the RGBA value corresponding with described the second color setting operation instruction and equates;
Figure interior zone shows that image generates submodule, for generating figure interior zone according to the pixel that is positioned at described figure interior zone, shows image.
As can be seen from the above technical solutions, the control module of the embodiment of the present invention receives the operational order of user's input, and transfer preset picture according to this operational order, control module is transferred preset picture according to operational order, and generate corresponding demonstration image according to operational order and preset picture: the embodiment of the present invention is when rendered images, can transfer preset picture according to user's operational order, and this preset picture is pre-stored in local hard drive, so user can cannot draw the image that maybe cannot show by render engine and generate preset picture, control module carries out corresponding processing according to user's operational order to preset picture, and then make control module can generate the needed image of user, and do not need to be confined to the point that render engine provides, line and triangle display mode, realized showing fast and easily of image.
Accompanying drawing explanation
Fig. 1 is an embodiment flow chart of steps of a kind of method for displaying image of providing of the embodiment of the present invention;
Fig. 2 is another embodiment flow chart of steps of a kind of method for displaying image of providing of the embodiment of the present invention;
Fig. 3 is another embodiment flow chart of steps of a kind of method for displaying image of providing of the embodiment of the present invention;
Fig. 4 is another embodiment flow chart of steps of a kind of method for displaying image of providing of the embodiment of the present invention;
Fig. 5 is another embodiment flow chart of steps of a kind of method for displaying image of providing of the embodiment of the present invention;
Fig. 6 is another embodiment flow chart of steps of a kind of method for displaying image of providing of the embodiment of the present invention;
Fig. 7 is another embodiment flow chart of steps of a kind of method for displaying image of providing of the embodiment of the present invention;
Fig. 8 is an example structure schematic diagram of a kind of control module of providing of the embodiment of the present invention;
Fig. 9 is another example structure schematic diagram of a kind of control module of providing of the embodiment of the present invention;
Figure 10 is another example structure schematic diagram of a kind of control module of providing of the embodiment of the present invention;
Figure 11 is another example structure schematic diagram of a kind of control module of providing of the embodiment of the present invention.
Embodiment
The embodiment of the present invention provides a kind of method for displaying image and control module, for realizing showing fast and easily of image.
Below in conjunction with Fig. 1, the embodiment of the present invention is elaborated:
101, control module receives the operational order of user's input;
When user need to carry out the drafting of image and show, start application program is on computers installed in advance, this application program provides operation interface, and user enters the operating instructions by this operation interface, and control module receives this operational order of user's input.
102, this control module is transferred preset picture according to this operational order, and generates corresponding demonstration image according to this operational order and this preset picture;
Wherein, this preset picture is pre-stored in the local hard drive of computing machine, when control module receives after operational order, according to this operational order, this preset picture is loaded in internal memory from local hard drive.
Control module obtains this preset picture, and according to operational order, preset picture is generated to corresponding demonstration image.
103, the window that this control module is mapped to this demonstration image texture for operation display interface shows.
The render engine that third party provides generally provides the functional interface of multiple texture operation, and control module can be mapped to window by the demonstration image texture of its generation in conjunction with the functional interface of render engine and show.
Wherein, texture is that the pixel that shows image is mapped to the process that the pixel in window shows.
In the present embodiment, control module generates preset picture to show image according to user's operational order, and this preset picture is pre-stored in local hard drive; Control module shows this demonstration image in conjunction with the functional interface of render engine on window, be that control module can carry out by the demonstration of bitmap the drafting of analog rule vector, and then the present embodiment can be applied on the platform that regular vector interface is not provided, thereby can make image show quickly and easily on window.
Below in conjunction with illustrating shown in Fig. 2 the embodiment of the present invention is how to generate graphics field according to user's operational order to show image:
201, control module receives the operational order in the graphing region of user's input;
When user needs the image in graphing region, the operation interface providing by application program is inputted the operational order in graphing region.
202, this control module is transferred the preset picture of RGBA form according to the operational order in this graphing region of user's input;
When control module receives after the operational order in graphing region of user input, preset picture is loaded in internal memory from local hard drive.
Wherein, this preset picture is provided with graphics field, figure interior zone and non-graphics field.
For solving the defect that render engine cannot drawing rule image, this preset picture can pre-rendered one-tenth regular image, and this regular image be preferably circular or square, certain also can according to user different prediction picture need to be set, such as trapezoidal etc.
According to the preset picture of rule, the operational order that user inputs graphing region specifically can be the circular operational order of drafting or draws square operational order.
In order to distinguish fast and effectively graphics field and the figure interior zone of preset picture, the RGBA value of graphics field and the RGBA value of figure interior zone of preset picture that can RGBA form are set to unequal;
In addition,, if the non-graphics field of preset picture needs transparent demonstration, RGBA value that can non-graphics field is set to 0.
203, this control module obtains respectively the RGBA value of this figure interior zone and this graphics field;
Control module reads preset picture, and obtains respectively the RGBA value of figure interior zone and this graphics field.
204, this control module travels through all pixels of this preset picture, and obtains the RGBA value of each pixel;
For according to the operational order graphing region in user's graphing region, control module need to travel through all pixels of preset picture, and obtains the RGBA value of each pixel.
Be that control module can determine respectively that by the RGBA value of each pixel each pixel belongs to graphics field, figure interior zone or belongs to non-graphics field.
If the RGBA value of the pixel that 205 these control modules get equals the RGBA value of this figure interior zone, the RGBA value that this control module is positioned at the pixel of this figure interior zone is set to 0;
If the RGBA value of the pixel that control module gets equals the RGBA value of this figure interior zone, illustrate that this pixel is positioned at figure interior zone.
For display graphics region, need the transparent demonstration of figure interior zone, just can make control module get graphics field.
The RGBA value that control module is positioned at the pixel of this figure interior zone is set to 0, and then graphics field can be accessed clearly show.
If the RGBA value of the pixel that 206 these control modules get equals the RGBA value of this non-graphics field, this control module is not processed being positioned at the pixel of this non-graphics field;
If the RGBA value of the pixel that control module gets equals the RGBA value of this non-graphics field, illustrate that this pixel is positioned at non-graphics field.
The non-graphics field of preset picture is transparent demonstration, and the RGBA value of non-graphics field is 0, and control module is without processing being positioned at the pixel of this non-graphics field.
If the RGBA value of the pixel that 207 these control modules get equals the RGBA value of this graphics field, this control module judges that whether user inputs the first color setting operation instruction, if not, carry out step 208; If so, carry out step 209;
If the RGBA value of the pixel that control module gets equals the RGBA value of graphics field, illustrate that this pixel is positioned at graphics field, user wishes to show the pixel in this region.
Control module judges whether user inputs the first color setting operation instruction;
Be that user can input the first color by the operation interface of application program and instruction is set controls the shown color in this graphics field.
208, this control module is not processed being positioned at the pixel of this graphics field;
Be that user does not input the first color instruction is set, control module is positioned at the RGBA value of the pixel of graphics field without change, carry out step 211 afterwards.
209, this control module obtains the RGBA value corresponding with this first color setting operation instruction of user's input;
Be that user has inputted the first color instruction is set, user wishes to change the shown concrete color in graphics field, and control module obtains the RGBA value corresponding with this first color setting operation instruction of user's input.
210, the RGBA value that this control module is positioned at the pixel of this graphics field is set to the RGBA value corresponding with this first color setting operation instruction and equates;
This control module will reset the RGBA value of the pixel that is positioned at this graphics field according to the first color setting operation instruction, and then changes the color of graphics field.
Be in particular, the RGBA value that control module is positioned at the pixel of this graphics field is set to the RGBA value corresponding with this first color setting operation instruction and equates.
Control module, by resetting the RGBA value of the pixel that is positioned at this graphics field, makes user can change the shown color of image-region.
211, this control module generates graphics field demonstration image according to the pixel that is positioned at this graphics field.
Control module obtains the pixel that does not change RGBA value that is positioned at graphics field or the pixel that resets RGBA value according to the first color setting operation instruction.
Control module generates graphics field according to the pixel that is positioned at this graphics field getting and shows image.
212, control module shows that by this graphics field the window that image texture is mapped to for operation display interface shows.
Control module, in conjunction with the functional interface of render engine, shows that by graphics field the window that image texture is mapped to for operation display interface shows.
In the present embodiment, control module can travel through all pixels of preset picture according to the graphing region operation instruction of user's input, and figure images of interior regions is carried out to transparent demonstration, the first color that control module also can obtain user's input arranges instruction, and then according to this first color, the color that instruction arranges graphical display area area image is set, thereby can realize the object of the simple drawing rule image of user, make up the directly defect of drawing rule image of render engine.
How above embodiment has introduced the method in graphing region, below in conjunction with the embodiment shown in Fig. 3, how the demonstration image of graphing interior zone is described:
301, this control module receives the operational order of the graphing interior zone of user's input;
When user needs the image of graphing interior zone, the operation interface providing by application program is inputted the operational order of graphing interior zone.
302, this control module is transferred the preset picture of RGBA form according to the operational order of this graphing interior zone of user's input;
When control module receives after the operational order of graphing interior zone of user input, preset picture is loaded in internal memory from local hard drive.
Wherein, this preset picture is provided with graphics field, figure interior zone and non-graphics field.
For solving the defect that render engine cannot drawing rule image, this preset picture can pre-rendered one-tenth regular image, and this regular image be preferably circular or square, certain also can according to user different prediction picture need to be set, such as trapezoidal etc.
According to the preset picture of rule, the operational order that user can input graphing interior zone specifically can be the drafting operational order of round dot or the operational order of drafting side's point.
In order to distinguish fast and effectively graphics field and the figure interior zone of preset picture, the RGBA value of this graphics field and the RGBA value of this figure interior zone of preset picture that can RGBA form are set to unequal;
The non-graphics field of preset picture needs transparent demonstration, so RGBA value that can non-graphics field is set to 0.
303, this control module obtains respectively the RGBA value of this figure interior zone and this graphics field;
Control module reads preset picture, and obtains respectively the RGBA value of figure interior zone and this graphics field.
304, this control module travels through all pixels of this preset picture, and obtains the RGBA value of each pixel;
In order to show image according to the operational order graphing interior zone of user's graphing interior zone, control module need to travel through all pixels of preset picture, and obtains the RGBA value of each pixel.
Be that control module can determine respectively that by the RGBA value of each pixel each pixel belongs to graphics field, figure interior zone or belongs to non-graphics field.
If the RGBA value of the pixel that 305 these control modules get equals the RGBA value of this non-graphics field, this control module is not processed being positioned at the pixel of this non-graphics field;
If the RGBA value of the pixel that control module gets equals the RGBA value of this non-graphics field, illustrate that this pixel is positioned at non-graphics field.
The transparent demonstration in non-graphics field of preset picture, the RGBA value of non-graphics field is 0, control module is without processing being positioned at the pixel of this non-graphics field.
If the RGBA value of the pixel that 306 these control modules get equals the RGBA value of this graphics field, the RGBA value that this control module is positioned at the pixel of this graphics field is set to 0;
If the RGBA value of the pixel that control module gets equals the RGBA value of this graphics field, illustrate that this pixel is positioned at graphics field.
For display graphics interior zone, need the transparent demonstration in graphics field.
The RGBA value that control module is positioned at the pixel of this graphics field is set to 0.
If the RGBA value of the pixel that 307 these control modules get equals the RGBA value of this figure interior zone, this control module judges that whether user inputs the second color setting operation instruction, if not, carry out step 308; If so, carry out step 309;
308, this control module is not processed being positioned at the pixel of this figure interior zone;
Be that user does not input the second color instruction is set, control module is positioned at the RGBA value of the pixel of figure interior zone without change, performs step afterwards 311.
309, this control module obtains the RGBA value corresponding with this second color setting operation instruction of user's input;
Be that user has inputted the second color instruction is set, user wishes to change the shown concrete color of figure interior zone, and control module obtains the RGBA value corresponding with this second color setting operation instruction of user's input.
310, the RGBA value that this control module is positioned at the pixel of this figure interior zone is set to the RGBA value corresponding with this second color setting operation instruction and equates;
This control module will reset the RGBA value of the pixel that is positioned at this figure interior zone according to the second color setting operation instruction, and then changes the color of figure interior zone.
Be in particular, the RGBA value that control module is positioned at the pixel of this figure interior zone is set to the RGBA value corresponding with this second color setting operation instruction and equates.
Control module, by resetting the RGBA value of the pixel that is positioned at this figure interior zone, makes user can change the shown color of image interior zone.
311, this control module generates figure interior zone demonstration image according to the pixel that is positioned at this figure interior zone;
Control module obtains the pixel that does not change RGBA value that is positioned at figure interior zone or the pixel that resets RGBA value according to the second color setting operation instruction.
Control module generates figure interior zone according to the pixel that is positioned at this figure interior zone getting and shows image.
312, control module shows that by this figure interior zone the window that image texture is mapped to for operation display interface shows.
Control module, in conjunction with the functional interface of render engine, shows that by figure interior zone the window that image texture is mapped to for operation display interface shows.
In the present embodiment, control module can travel through all pixels of preset picture according to the graphing interior zone operational order of user's input, and transparent demonstration is carried out in graphics field, the second color that control module also can obtain user's input arranges instruction, and then according to this second color, the color that instruction arranges the inner viewing area of figure image is set, thereby can realize the object of the simple drawing rule image of user, make up the directly defect of drawing rule image of render engine.
Above embodiment has illustrated when graphing interior zone shows image, transparent demonstration need to be carried out in graphics field, below in conjunction with the embodiment explanation shown in Fig. 4, how graphics field and figure interior zone one are shown, and then form figure interior zone demonstration image:
401, this control module receives the operational order of the graphing interior zone of user's input;
402, this control module is transferred the preset picture of RGBA form according to the operational order of this graphing interior zone of user's input;
403, this control module obtains respectively the RGBA value of this figure interior zone and this graphics field;
404, this control module travels through all pixels of this preset picture, and obtains the RGBA value of each pixel;
If the RGBA value of the pixel that 405 these control modules get equals the RGBA value of this non-graphics field, this control module is not processed being positioned at the pixel of this non-graphics field;
Wherein, the step 401 in the present embodiment is identical to step 305 process with the step 301 shown in Fig. 3 to step 405, at this, is not repeating.
If the RGBA value of the pixel that 406 these control modules get equals the RGBA value of this figure interior zone, this control module judges that whether user inputs the second color setting operation instruction, if not, carry out step 407; If so, carry out step 408;
407, this control module is not processed being positioned at the pixel of this figure interior zone;
Be that figure interior zone shows with the color of giving tacit consent to, perform step afterwards 410.
408, this control module obtains the RGBA value corresponding with this second color setting operation instruction of user's input;
409, the RGBA value that this control module is positioned at the pixel of this figure interior zone is set to the RGBA value corresponding with this second color setting operation instruction and equates;
Wherein, the step 406 in the present embodiment is identical to step 310 process with the step 307 shown in Fig. 3 to step 409, does not repeat them here.
If the RGBA value of the pixel that 410 these control modules get equals the RGBA value of this graphics field, the RGBA value that this control module is positioned at the pixel of this graphics field is set to equate with the RGBA value that is positioned at the pixel of figure interior zone;
If the RGBA value of the pixel of figure interior zone does not change, with the color of giving tacit consent to, show, the color of graphics field is also set to the default color identical with figure interior zone color;
The RGBA value that control module is positioned at the pixel of graphics field is specifically set to equal be positioned at the RGBA value of the pixel of figure interior zone.
If the RGBA value of the pixel of figure interior zone arranges instruction according to the second color of user input and resets, the color that is positioned at graphics field be set to change after the color of figure interior zone identical;
Control module obtains the RGBA value of the pixel that the pixel of figure interior zone resets specifically, and the RGBA value that is positioned at the pixel of graphics field is set to equate with the RGBA value that is positioned at the pixel of figure interior zone.
411, this control module generates figure interior zone demonstration image according to being positioned at the pixel of this figure inside and the pixel of graphics field;
The RGBA value that is positioned at the pixel of graphics field equates with the RGBA value that is positioned at the pixel of figure interior zone, can the pixel of graphics field and the pixel of figure interior zone be set to same RGBA value, graphics field and figure interior zone one are shown, merge and generate figure images of interior regions.
Be that control module generates figure interior zone demonstration image according to figure interior zone pixel and graphics field pixel.
412, control module shows that by this figure interior zone the window that image texture is mapped to for operation display interface shows.
Control module, in conjunction with the functional interface of render engine, shows that by figure interior zone the window that image texture is mapped to for operation display interface shows.
In the present embodiment, control module can travel through all pixels of preset picture according to the graphing interior zone operational order of user's input, the second color that control module can obtain user's input arranges instruction, and then according to this second color, the color that instruction arranges the inner viewing area of figure image is set, be that figure interior zone can show by the color of acquiescence or show after changing, it is identical with the color of figure interior zone that the color of control module graphics field is set to, thereby make graphics field and figure interior zone carry out one demonstration, and then can realize the object of the simple drawing rule image of user, made up the directly defect of drawing rule image of render engine.
How above embodiment explanation carries out the drafting of regular image, how to expand or dwindle graphics field to show image below in conjunction with the embodiment explanation shown in Fig. 5:
501, control module receives the operational order in the graphing region of user's input;
502, this control module is transferred the preset picture of RGBA form according to the operational order in this graphing region of user's input;
503, this control module obtains respectively the RGBA value of this figure interior zone and this graphics field;
504, this control module travels through all pixels of this preset picture, and obtains the RGBA value of each pixel;
If the RGBA value of the pixel that 505 these control modules get equals the RGBA value of this figure interior zone, the RGBA value that this control module is positioned at the pixel of this figure interior zone is set to 0;
If the RGBA value of the pixel that 506 these control modules get equals the RGBA value of this non-graphics field, this control module is not processed being positioned at the pixel of this non-graphics field;
If the RGBA value of the pixel that 507 these control modules get equals the RGBA value of this graphics field, this control module judges that whether user inputs the first color setting operation instruction, if not, carry out step 508; If so, carry out step 509;
508, this control module is not processed being positioned at the pixel of this graphics field;
509, this control module obtains the RGBA value corresponding with this first color setting operation instruction of user's input;
510, the RGBA value that this control module is positioned at the pixel of this graphics field is set to the RGBA value corresponding with this first color setting operation instruction and equates;
511, this control module generates graphics field demonstration image according to the pixel that is positioned at this graphics field;
Wherein step 501 is identical to the step shown in step 211 with the step 201 shown in Fig. 2 to the step shown in step 511, does not repeat them here.
512, this control module receives the graphics field demonstration picture size parameters of user's input;
The operation interface tablet pattern region that is user by application program shows that picture size parameters arranges the shown concrete size in graphics display area, for example, be the multiple amplifying or the multiple dwindling.
By this graphics field, show that picture size parameters can zoom in or out this graphics field and show image.
Wherein, graphics field demonstration picture size parameters also can be inputted different parameters according to the difference of graphics field concrete shape, specifically be not construed as limiting herein, if for example this graphics field is trapezoidal, this graphics field shows that picture size parameters also can comprise the slope that this is trapezoidal.
513, this control module shows that according to this graphics field picture size parameters shows that by this graphics field image texture is mapped to window and shows.
The graphics field that control module receives user's input shows picture size parameters, and shows that according to this graphics field picture size parameters makes this graphics field that this window shows show that the size of image shows that with this graphics field picture size parameters equates.
In the present embodiment, user can show by application program operation interface tablet pattern region the parameters of image, control module shows that according to this graphics field the parameters of image shows that by this graphics field image is to show that with this graphics field the size that picture size parameters equates shows on window, thereby makes user that the object that graphics field shows image size can be set simply and easily.
How above embodiment explanation arranges the size that graphics field shows image, below in conjunction with the embodiment explanation shown in Fig. 6, how the size that figure interior zone shows image is set:
601, this control module receives the operational order of the graphing interior zone of user's input;
602, this control module is transferred the preset picture of RGBA form according to the operational order of this graphing interior zone of user's input;
603, this control module obtains respectively the RGBA value of this figure interior zone and this graphics field;
604, this control module travels through all pixels of this preset picture, and obtains the RGBA value of each pixel;
If the RGBA value of the pixel that 605 these control modules get equals the RGBA value of this non-graphics field, this control module is not processed being positioned at the pixel of this non-graphics field;
If the RGBA value of the pixel that 606 these control modules get equals the RGBA value of this graphics field, the RGBA value that this control module is positioned at the pixel of this graphics field is set to 0;
If the RGBA value of the pixel that 607 these control modules get equals the RGBA value of this figure interior zone, this control module judges that whether user inputs the second color setting operation instruction, if not, carry out step 608; If so, carry out step 609;
608, this control module is not processed being positioned at the pixel of this figure interior zone;
609, this control module obtains the RGBA value corresponding with this second color setting operation instruction of user's input;
610, the RGBA value that this control module is positioned at the pixel of this figure interior zone is set to the RGBA value corresponding with this second color setting operation instruction and equates;
611, this control module generates figure interior zone demonstration image according to the pixel that is positioned at this figure interior zone.
Step 601 in the present embodiment to step 611 equates with the process of the step 301 shown in Fig. 3 to step 311, does not repeat them here.
612, this control module receives the figure interior zone demonstration picture size parameters of user's input;
Being that user can show that by the operation interface tablet pattern interior zone of application program picture size parameters arranges the shown concrete size of figure images of interior regions, for example, is the multiple amplifying or the multiple dwindling.
By this figure interior zone, show that picture size parameters can zoom in or out this figure interior zone and show image.
Wherein, figure interior zone demonstration picture size parameters also can be inputted different parameters according to the difference of figure interior zone concrete shape, specifically be not construed as limiting herein, if for example this figure interior zone is trapezoidal, this figure interior zone shows that picture size parameters also can comprise the slope that this is trapezoidal.
613, this control module shows that according to this figure interior zone picture size parameters shows that by this figure interior zone image texture is mapped to window and shows.
The figure interior zone that control module receives user's input shows picture size parameters, and shows that according to this figure interior zone picture size parameters makes this figure interior zone that this window shows show that the size of image shows that with this figure interior zone picture size parameters equates.
In the present embodiment, control module can generate figure interior zone and show image, the figure interior zone that control module receives user's input shows picture size parameters, and show that according to this figure interior zone picture size parameters arranges the size that figure interior zone shows image, thereby make user can conveniently control the size of the shown figure interior zone of window, for user has brought convenience.
How above embodiment explanation arranges the size that figure interior zone shows image, if below in conjunction with embodiment explanation graphics field and the figure interior zone one shown in Fig. 7 show how the size that figure interior zone shows image is set:
701, this control module receives the operational order of the graphing interior zone of user's input;
702, this control module is transferred the preset picture of RGBA form according to the operational order of this graphing interior zone of user's input;
703, this control module obtains respectively the RGBA value of this figure interior zone and this graphics field;
704, this control module travels through all pixels of this preset picture, and obtains the RGBA value of each pixel;
If the RGBA value of the pixel that 705 these control modules get equals the RGBA value of this non-graphics field, this control module is not processed being positioned at the pixel of this non-graphics field;
If the RGBA value of the pixel that 706 these control modules get equals the RGBA value of this figure interior zone, this control module judges that whether user inputs the second color setting operation instruction, if not, carry out step 707; If so, carry out step 708;
707, this control module is not processed being positioned at the pixel of this figure interior zone;
708, this control module obtains the RGBA value corresponding with this second color setting operation instruction of user's input;
709, the RGBA value that this control module is positioned at the pixel of this figure interior zone is set to the RGBA value corresponding with this second color setting operation instruction and equates;
If the RGBA value of the pixel that 710 these control modules get equals the RGBA value of this graphics field, the RGBA value that this control module is positioned at the pixel of this graphics field is set to equate with the RGBA value that is positioned at the pixel of figure interior zone;
711, this control module generates figure interior zone demonstration image according to being positioned at the pixel of this figure inside and the pixel of graphics field;
Wherein, the step 701 in the present embodiment is identical to step 411 process with the step 401 shown in Fig. 4 to step 711, does not repeat them here.
712, this control module receives the figure interior zone demonstration picture size parameters of user's input;
Graphics field image can show with figure images of interior regions one, and user can control graphics field image that one shows and the shown concrete size of figure images of interior regions by controlling the shown concrete size of figure images of interior regions.
User can show that by the operation interface tablet pattern interior zone of application program picture size parameters arranges figure images of interior regions and the shown concrete size of graphics field image that one shows, for example, be the multiple amplifying or the multiple dwindling.
By this figure interior zone, show that picture size parameters can zoom in or out this figure interior zone and show image.
Wherein, figure interior zone demonstration picture size parameters also can be inputted different parameters according to the difference of figure interior zone concrete shape, specifically be not construed as limiting herein, if for example this figure interior zone is trapezoidal, this figure interior zone shows that picture size parameters also can comprise the slope that this is trapezoidal.
713, this control module shows that according to this figure interior zone picture size parameters shows that by this figure interior zone image texture is mapped to window and shows.
The figure interior zone that control module receives user's input shows picture size parameters, and shows that according to this figure interior zone picture size parameters makes this figure interior zone that this window shows show that the size of image shows that with this figure interior zone picture size parameters equates.
In the present embodiment, border circular areas image and figure images of interior regions one show, control module can generate the figure interior zone demonstration image that one shows, the figure interior zone that control module receives user's input shows picture size parameters, and show that according to this figure interior zone picture size parameters arranges the size that figure interior zone shows image, thereby make user can conveniently control the size of the shown figure interior zone of window, for user has brought convenience.
For ease of understanding, below lift concrete application scenarios the embodiment of the present invention be described in further details:
When user need to draw round dot, start application program;
User draws the operational order of round dot by the operation interface input of application program;
Control module is transferred pre-stored preset picture according to the operational order of the drafting round dot of user's input;
This preset picture is the square picture of RGBA form, and its wide and height is all 256*256 pixel; And the maximal value of this preset dimension of picture is only less than the maximal value of the texture that computer display card supports;
In this square picture, have incircle, this preset picture is provided with the border circular areas of incircle, the He Feiyuan region, round dot region of this incircle;
By the embodiment of the present invention, also can draw circular image, the regular images such as square chart picture or square dot image, because above-mentioned image user only need to arrange a parameter, for example the size of circular radius or the square length of side just can simply arrange the size that shows image;
Certainly, also can the preset picture of other shapes be set according to user's actual needs by the embodiment of the present invention, for example trapezoidal;
Control module obtains respectively the RGBA value of the border circular areas of incircle, the RGBA value in the round dot region of this incircle and the RGBA value in non-round region;
Wherein, the RGBA value in this border circular areas, this round dot region and this non-round region is not identical, and the transparent demonstration in non-round region, so the RGBA value in non-round region is 0;
Control module travels through all pixels of preset picture, and obtains the RGBA value of each pixel;
If the RGBA value of the pixel that this control module gets equals the RGBA value of this Uncircular field, be 0, this control module is not processed being positioned at the pixel of this Uncircular field;
If the RGBA value of the pixel that this control module gets equals the RGBA value of this border circular areas, the RGBA value that this control module is positioned at the pixel of this border circular areas is set to 0;
Be about to border circular areas and carry out transparent demonstration;
If the RGBA value of the pixel that this control module gets equals the RGBA value in this figure point region, control module detects user and whether inputs the instruction of color setting operation;
If when user's input is used for controlling the concrete color showing in round dot region, can input concrete color by the operation interface of application program;
Control module obtains the RGBA value corresponding with the color setting operation instruction of user's input;
The RGBA value that control module is positioned at the pixel in this round dot region is set to the RGBA value corresponding with the instruction of color setting operation and equates;
Control module generates round dot region according to the pixel that is positioned at this round dot region and shows image;
The operation interface input round dot region that user provides by application program shows picture size parameters, and this picture size parameters shows for amplifying twice;
This control module shows that by round dot region image amplifies twice texture and shows to window.
The above embodiment of the present invention describes method for displaying image in detail, below in conjunction with the embodiment shown in Fig. 8, introduces in detail a kind of control module;
This control module specifically comprises:
Operational order receiver module 801, for receiving the operational order of user's input;
Show image generation module 802, for transfer the pre-stored preset picture at local hard drive according to this operational order, and generate corresponding demonstration image according to operational order and this preset picture;
Display module 803, shows for the window that this demonstration image texture is mapped to for operation display interface.
In the present embodiment, show that image generation module 802 generates preset picture to show image according to user's operational order, display module 803 shows this demonstration image in conjunction with the functional interface of render engine, thereby can make image show quickly and easily on window on window.
Above embodiment has introduced a kind of control module, below in conjunction with the embodiment shown in Fig. 9, the concrete structure of operational order receiver module is elaborated:
Control module specifically comprises:
Operational order receiver module 901, for receiving the operational order of user's input;
Show image generation module 902, for transfer the pre-stored preset picture at local hard drive according to this operational order, and generate corresponding demonstration image according to operational order and this preset picture;
Display module 903, shows for the window that this demonstration image texture is mapped to for operation display interface;
Wherein, this operational order receiver module 901 specifically comprises:
First receives submodule 9011, for receiving the operational order in the graphing region of user's input;
Second receives submodule 9022, for receiving the operational order of the graphing interior zone of user's input.
In the present embodiment, first receives the operational order that submodule 9011 can receive the graphing region of user's input, second receives the operational order that submodule 9022 can receive the graphing interior zone of user's input, demonstration image generation module 902 is transferred preset picture according to this operational order, display module 903, this demonstration image texture is mapped to window to be shown, adopt the present embodiment make user can control module can be with user need to draw different regular images, the render engine making up cannot drawing rule image drawback, for user has brought convenience.
Above embodiment has introduced a kind of control module, shows that the concrete structure of the demonstration image generation module of image elaborates below in conjunction with the embodiment shown in Figure 10 to generating graphics field:
Control module specifically comprises:
Operational order receiver module 1001, for receiving the operational order of user's input;
Show image generation module 1002, for transfer the pre-stored preset picture at local hard drive according to this operational order, and generate graph of a correspondence region demonstration image according to operational order and this preset picture;
Display module 1003, for showing this graphics field the window that image texture is mapped to for operation display interface shows;
Wherein, show that image generation module 1002 specifically comprises:
The first preset picture is transferred submodule 10021, for transfer the preset picture of RGBA form according to the operational order in this graphing region of user's input, this preset picture is provided with graphics field, figure interior zone and non-graphics field, and the RGBA value of this graphics field and the RGBA value of this figure interior zone are unequal, and the RGBA value of this non-graphics field is 0;
The one RGBA value is obtained submodule 10022, for obtaining respectively the RGBA value of this figure interior zone and this graphics field;
The first traversal submodule 10023, travels through for all pixels to this preset picture, and obtains the RGBA value of each pixel;
Figure interior zone pixel arranges the first submodule 10024, if equal the RGBA value of this figure interior zone for the RGBA value of the pixel that gets, the RGBA value that is positioned at the pixel of this figure interior zone is set to 0;
Non-graphics field pixel arranges the first submodule 10025, if equal the RGBA value of this non-graphics field for the RGBA value of the pixel that gets, to being positioned at the pixel of this non-graphics field, does not process;
Graphics field pixel arranges the first submodule 10026, if the RGBA value of the pixel getting for control module equals the RGBA value of this graphics field, judges whether user inputs the first color setting operation instruction; If not, this control module is not processed being positioned at the pixel of this graphics field; If so, this control module to obtain the RGBA value corresponding with this first color setting operation instruction of user input equal;
Graphics field shows that image generates submodule 10027, for generating graphics field according to the pixel that is positioned at this graphics field, shows image.
In the present embodiment, the first traversal submodule 10023 of control module can travel through all pixels of preset picture according to the operational order of user's input, figure interior zone pixel arranges the first submodule 10024 figure interior zone is carried out to transparent demonstration, the graphics field pixel of control module arranges the first color that the first submodule 10026 can obtain user input instruction is set, and then according to this first color, the color that instruction arranges graphical display area area image is set, thereby can realize the object of the simple drawing rule image of user, made up the directly defect of drawing rule image of render engine.
Above embodiment has introduced a kind of control module, shows that the concrete structure of the demonstration image generation module of image elaborates below in conjunction with the embodiment shown in Figure 11 to generating figure interior zone:
Control module specifically comprises:
Operational order receiver module 1101, for receiving the operational order of user's input;
Show image generation module 1102, for transfer the pre-stored preset picture at local hard drive according to this operational order, and generate graph of a correspondence interior zone demonstration image according to operational order and this preset picture;
Display module 1003, for showing this figure interior zone the window that image texture is mapped to for operation display interface shows;
Wherein, this demonstration image generation module 1102 specifically comprises:
The second preset picture is transferred submodule 11021, for transfer the preset picture of RGBA form according to the operational order in this graphing region of user's input, this preset picture is provided with graphics field, figure interior zone and non-graphics field, and the RGBA value of this graphics field and the RGBA value of this figure interior zone are unequal, and the RGBA value of this non-graphics field is 0;
The 2nd RGBA value is obtained submodule 11022, for obtaining respectively the RGBA value of this figure interior zone and this graphics field;
The second traversal submodule 11023, travels through for all pixels to this preset picture, and obtains the RGBA value of each pixel;
Non-graphics field pixel arranges the second submodule 11024, if equal the RGBA value of this non-graphics field for the RGBA value of the pixel that gets, to being positioned at the pixel of this non-graphics field, does not process;
Graphics field pixel arranges the second submodule 11025, if equal the RGBA value of this graphics field for the RGBA value of the pixel that gets, the RGBA value that is positioned at the pixel of this graphics field is set to 0;
Figure interior zone pixel arranges the second submodule 11026, if equal the RGBA value of this figure interior zone for the RGBA value of the pixel that gets, judges whether user inputs the second color setting operation instruction; If not, to being positioned at the pixel of this figure interior zone, do not process; If so, obtain the RGBA value corresponding with this second color setting operation instruction of user's input; The RGBA value that is positioned at the pixel of this figure interior zone is set to the RGBA value corresponding with this second color setting operation instruction and equates;
Figure interior zone shows that image generates submodule 11027, for generating figure interior zone according to the pixel that is positioned at this figure interior zone, shows image.
In the present embodiment, the second traversal submodule 11023 of control module can travel through all pixels of preset picture according to the operational order of user's input, the RGBA value that figure interior zone pixel arranges the pixel that the second submodule 11026 gets equals the RGBA value of this figure interior zone, judges whether user inputs the second color setting operation instruction; If not, to being positioned at the pixel of this figure interior zone, do not process; If so, obtain the RGBA value corresponding with this second color setting operation instruction of user's input; The present embodiment, by the transparent demonstration in graphics field, can be drawn out figure interior zone according to user's operation and show image, thereby can realize the object of the simple drawing rule image of user, has made up the directly defect of drawing rule image of render engine.
For ease of understanding, below in conjunction with concrete application scenarios, the embodiment of the present invention is described in further detail;
When user need to draw round dot, start application program;
User draws the operational order of round dot by the operation interface input of application program;
Operational order receiver module 1101 receives the operational order of the drafting round dot of user's input;
The second preset picture is transferred submodule 11021 and is transferred pre-stored preset picture according to the operational order of the drafting round dot of user's input;
This preset picture is the square picture of RGBA form, in this square picture, has incircle, and this preset picture is provided with the border circular areas of incircle, the He Feiyuan region, round dot region of this incircle;
By the embodiment of the present invention, also can draw circular image, the regular images such as square chart picture or square dot image, because above-mentioned image user only need to arrange a parameter, for example the size of circular radius or the square length of side just can simply arrange the size that shows image;
Certainly, also can the preset picture of other shapes be set according to user's actual needs by the embodiment of the present invention, for example trapezoidal;
The 2nd RGBA value obtains that submodule 11022 obtains respectively the RGBA value of the border circular areas of incircle, the RGBA value in the round dot region of this incircle and the RGBA value in non-round region;
Wherein, the RGBA value in this border circular areas, this round dot region and this non-round region is not identical, and the transparent demonstration in non-round region, so the RGBA value in non-round region is 0;
All pixels of 11023 pairs of preset pictures of the second traversal submodule travel through, and obtain the RGBA value of each pixel;
The RGBA value that non-graphics field pixel arranges the pixel that the second submodule 11024 gets equals the RGBA value of this Uncircular field, is 0, and this non-graphics field pixel arranges 11024 pairs of pixels that are positioned at this Uncircular field of the second submodule and do not process;
If graphics field pixel arranges the RGBA value that the RGBA value of the pixel that the second submodule 11025 gets equals this border circular areas, the RGBA value that this control module is positioned at the pixel of this border circular areas is set to 0;
Be about to border circular areas and carry out transparent demonstration;
If figure interior zone pixel arranges the RGBA value that the RGBA value of the pixel that the second submodule 11026 gets equals this figure point region, figure interior zone pixel arranges the second submodule 11026 and detects users and whether input the instruction of color setting operation;
If when user's input is used for controlling the concrete color showing in round dot region, can input concrete color by the operation interface of application program;
Figure interior zone pixel arranges the second submodule 11026 and obtains the RGBA value corresponding with the color setting operation instruction of user's input;
Figure interior zone pixel arranges RGBA value that the second submodule 11026 is positioned at the pixel in this round dot region and is set to the RGBA value corresponding with the instruction of color setting operation and equates;
Figure interior zone shows that image generates submodule 11027 and generates round dot region demonstration image according to the pixel that is positioned at this round dot region;
The operation interface input round dot region that user provides by application program shows picture size parameters, and this picture size parameters shows for amplifying twice;
Display module 1003 shows that by round dot region image amplifies twice texture and shows to window.
Those skilled in the art can be well understood to, for convenience and simplicity of description, the system of foregoing description, the specific works process of device and unit, can, with reference to the corresponding process in preceding method embodiment, not repeat them here.
In the several embodiment that provide in the application, should be understood that, disclosed system, apparatus and method, can realize by another way.For example, device embodiment described above is only schematic, for example, the division of this unit, be only that a kind of logic function is divided, during actual realization, can have other dividing mode, for example a plurality of unit or assembly can in conjunction with or can be integrated into another system, or some features can ignore, or do not carry out.Another point, shown or discussed coupling each other or direct-coupling or communication connection can be by some interfaces, indirect coupling or the communication connection of device or unit can be electrically, machinery or other form.
This unit as separating component explanation can or can not be also physically to separate, and the parts that show as unit can be or can not be also physical locations, can be positioned at a place, or also can be distributed in a plurality of network element.Can select according to the actual needs some or all of unit wherein to realize the object of the present embodiment scheme.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, can be also that the independent physics of unit exists, and also can be integrated in a unit two or more unit.Above-mentioned integrated unit both can adopt the form of hardware to realize, and also can adopt the form of SFU software functional unit to realize.
If the form of SFU software functional unit of usining this integrated unit realizes and during as production marketing independently or use, can be stored in a computer read/write memory medium.Understanding based on such, the all or part of of the part that technical scheme of the present invention contributes to prior art in essence in other words or this technical scheme can embody with the form of software product, this computer software product is stored in a storage medium, comprise that some instructions are with so that a computer equipment (can be personal computer, server, or the network equipment etc.) carry out all or part of step of each embodiment the method for the present invention.And aforesaid storage medium comprises: various media that can be program code stored such as USB flash disk, portable hard drive, ROM (read-only memory) (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disc or CDs.
Above embodiment only, in order to technical scheme of the present invention to be described, is not intended to limit; Although the present invention is had been described in detail with reference to previous embodiment, those of ordinary skill in the art is to be understood that: its technical scheme that still can record aforementioned each embodiment is modified, or part technical characterictic is wherein equal to replacement; And these modifications or replacement do not make the essence of appropriate technical solution depart from the spirit and scope of various embodiments of the present invention technical scheme.

Claims (10)

1. a method for displaying image, is characterized in that, comprising:
Control module receives the operational order of user's input;
Described control module is transferred pre-stored preset picture in local hard drive according to described operational order, and generates corresponding demonstration image according to described operational order and described preset picture;
The window that described control module is mapped to described demonstration image texture for operation display interface shows.
2. method for displaying image according to claim 1, is characterized in that, the operational order that described control module receives user's input specifically comprises:
Described control module receives the operational order in graphing region or the operational order of graphing interior zone of user's input.
3. method for displaying image according to claim 2, it is characterized in that, described control module is transferred pre-stored preset picture in local hard drive according to described operational order, and according to operational order and described preset picture, generates corresponding demonstration image and specifically comprise:
Described control module is transferred the preset picture of RGBA form according to the operational order in the described graphing region of user's input, described preset picture is provided with graphics field, figure interior zone and non-graphics field, and the RGBA value of described graphics field and the RGBA value of described figure interior zone are unequal, and the RGBA value of described non-graphics field is 0;
Described control module obtains respectively the RGBA value of described figure interior zone and described graphics field;
Described control module travels through all pixels of described preset picture, and obtains the RGBA value of each pixel;
If the RGBA value of the pixel that described control module gets equals the RGBA value of described figure interior zone, the RGBA value that described control module is positioned at the pixel of described figure interior zone is set to 0;
If the RGBA value of the pixel that described control module gets equals the RGBA value of described non-graphics field, described control module is not processed being positioned at the pixel of described non-graphics field;
If the RGBA value of the pixel that described control module gets equals the RGBA value of described graphics field, described control module judges whether user inputs the first color setting operation instruction;
If not, described control module is not processed being positioned at the pixel of described graphics field;
If so, described control module obtains the RGBA value corresponding with the described first color setting operation instruction of user's input;
The RGBA value that described control module is positioned at the pixel of described graphics field is set to the RGBA value corresponding with described the first color setting operation instruction and equates;
Described control module generates graphics field according to the pixel that is positioned at described graphics field and shows image.
4. method for displaying image according to claim 2, it is characterized in that, described control module is transferred pre-stored preset picture in local hard drive according to described operational order, and according to operational order and described preset picture, generates corresponding demonstration image and specifically comprise:
Described control module is transferred the preset picture of RGBA form according to the operational order of the described graphing interior zone of user's input, described preset picture is provided with graphics field, figure interior zone and non-graphics field, and the RGBA value of described graphics field and the RGBA value of described figure interior zone are unequal, and the RGBA value of described non-graphics field is 0;
Described control module obtains respectively the RGBA value of described figure interior zone and described graphics field, and wherein, the RGBA value of described non-graphics field is 0;
Described control module travels through all pixels of described preset picture, and obtains the RGBA value of each pixel;
If the RGBA value of the pixel that described control module gets equals the RGBA value of described non-graphics field, described control module is not processed being positioned at the pixel of described non-graphics field;
If the RGBA value of the pixel that described control module gets equals the RGBA value of described graphics field, the RGBA value that described control module is positioned at the pixel of described graphics field is set to 0;
If the RGBA value of the pixel that described control module gets equals the RGBA value of described figure interior zone, described control module judges whether user inputs the second color setting operation instruction;
If not, described control module is not processed being positioned at the pixel of described figure interior zone;
If so, described control module obtains the RGBA value corresponding with the described second color setting operation instruction of user's input;
The RGBA value that described control module is positioned at the pixel of described figure interior zone is set to the RGBA value corresponding with described the second color setting operation instruction and equates;
Described control module generates figure interior zone according to the pixel that is positioned at described figure interior zone and shows image.
5. method for displaying image according to claim 3, is characterized in that, described control module is mapped to window for operation display interface by described demonstration image texture and shows specifically and comprise:
The graphics field that described control module receives user's input shows picture size parameters;
Described control module shows that according to described graphics field picture size parameters shows that by described graphics field image texture is mapped to window and shows, so that the described graphics field that described window shows shows the size of image, shows that with described graphics field picture size parameters equates.
6. method for displaying image according to claim 4, is characterized in that, described control module is mapped to window for operation display interface by described demonstration image texture and shows specifically and comprise:
The figure interior zone that described control module receives user's input shows picture size parameters;
Described control module shows that according to described figure interior zone picture size parameters shows that by described figure interior zone image texture is mapped to window and shows, so that the described figure interior zone that described window shows shows the size of image, shows that with described figure interior zone picture size parameters equates.
7. a control module, is characterized in that, comprising:
Operational order receiver module, for receiving the operational order of user's input;
Show image generation module, for transfer the pre-stored preset picture at local hard drive according to described operational order, and generate corresponding demonstration image according to operational order and described preset picture;
Display module, shows for the window that described demonstration image texture is mapped to for operation display interface.
8. control module according to claim 7, is characterized in that, described operational order receiver module specifically comprises:
First receives submodule, for receiving the operational order in the graphing region of user's input;
Second receives submodule, for receiving the operational order of the graphing interior zone of user's input.
9. control module according to claim 8, is characterized in that, described demonstration image generation module specifically comprises:
The first preset picture is transferred submodule, for transfer the preset picture of RGBA form according to the operational order in the described graphing region of user's input, described preset picture is provided with graphics field, figure interior zone and non-graphics field, and the RGBA value of described graphics field and the RGBA value of described figure interior zone are unequal, and the RGBA value of described non-graphics field is 0;
The one RGBA value is obtained submodule, for obtaining respectively the RGBA value of described figure interior zone and described graphics field;
The first traversal submodule, travels through for all pixels to described preset picture, and obtains the RGBA value of each pixel;
Figure interior zone pixel arranges the first submodule, if equal the RGBA value of described figure interior zone for the RGBA value of the pixel that gets, the RGBA value that is positioned at the pixel of described figure interior zone is set to 0;
Non-graphics field pixel arranges the first submodule, if equal the RGBA value of described non-graphics field for the RGBA value of the pixel that gets, to being positioned at the pixel of described non-graphics field, does not process;
Graphics field pixel arranges the first submodule, if the RGBA value of the pixel getting for control module equals the RGBA value of described graphics field, judges whether user inputs the first color setting operation instruction; If not, described control module is not processed being positioned at the pixel of described graphics field; If so, described control module to obtain the RGBA value corresponding with the described first color setting operation instruction of user input equal;
Graphics field shows that image generates submodule, for generating graphics field according to the pixel that is positioned at described graphics field, shows image.
10. control module according to claim 8, is characterized in that, described demonstration image generation module also comprises:
The second preset picture is transferred submodule, for transfer the preset picture of RGBA form according to the operational order in the described graphing region of user's input, described preset picture is provided with graphics field, figure interior zone and non-graphics field, and the RGBA value of described graphics field and the RGBA value of described figure interior zone are unequal, and the RGBA value of described non-graphics field is 0;
The 2nd RGBA value is obtained submodule, for obtaining respectively the RGBA value of described figure interior zone and described graphics field;
The second traversal submodule, travels through for all pixels to described preset picture, and obtains the RGBA value of each pixel;
Non-graphics field pixel arranges the second submodule, if equal the RGBA value of described non-graphics field for the RGBA value of the pixel that gets, to being positioned at the pixel of described non-graphics field, does not process;
Graphics field pixel arranges the second submodule, if equal the RGBA value of described graphics field for the RGBA value of the pixel that gets, the RGBA value that is positioned at the pixel of described graphics field is set to 0;
Figure interior zone pixel arranges the second submodule, if equal the RGBA value of described figure interior zone for the RGBA value of the pixel that gets, judges whether user inputs the second color setting operation instruction; If not, to being positioned at the pixel of described figure interior zone, do not process; If so, obtain the RGBA value corresponding with the described second color setting operation instruction of user's input; The RGBA value that is positioned at the pixel of described figure interior zone is set to the RGBA value corresponding with described the second color setting operation instruction and equates;
Figure interior zone shows that image generates submodule, for generating figure interior zone according to the pixel that is positioned at described figure interior zone, shows image.
CN201310595468.5A 2013-11-21 2013-11-21 Image display method and control unit Pending CN103593862A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310595468.5A CN103593862A (en) 2013-11-21 2013-11-21 Image display method and control unit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310595468.5A CN103593862A (en) 2013-11-21 2013-11-21 Image display method and control unit

Publications (1)

Publication Number Publication Date
CN103593862A true CN103593862A (en) 2014-02-19

Family

ID=50083986

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310595468.5A Pending CN103593862A (en) 2013-11-21 2013-11-21 Image display method and control unit

Country Status (1)

Country Link
CN (1) CN103593862A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104134201A (en) * 2014-07-31 2014-11-05 广东威创视讯科技股份有限公司 Texture image stitching method and device
CN107833227A (en) * 2017-10-31 2018-03-23 苏州乐米信息科技股份有限公司 A kind of method for drafting and its system of circular clipping region
WO2020103036A1 (en) * 2018-11-21 2020-05-28 Boe Technology Group Co., Ltd. A method of real-time image processing based on rendering engine and a display apparatus

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1231800A (en) * 1996-11-26 1999-10-13 西门子公司 Method for encoding a digitalized picture
CN1653487A (en) * 2002-05-10 2005-08-10 比特波伊斯有限责任公司 Graphics engine with edge drawing unit and electronic device and memory incorporating a graphics engine
CN101046883A (en) * 2006-03-28 2007-10-03 株式会社东芝 Graphics-rendering apparatus
US20070263926A1 (en) * 2006-05-11 2007-11-15 Yoshiyuki Kokojima Image processing apparatus, image processing method, and image processing program
CN101211462A (en) * 2007-12-21 2008-07-02 炬力集成电路设计有限公司 Vector graph acceleration method and multimedia player
CN101388157A (en) * 2008-09-25 2009-03-18 炬力集成电路设计有限公司 Electronic map display packing, apparatus and equipment
CN101826213A (en) * 2010-04-20 2010-09-08 杭州电子科技大学 Method for filling area based on chain code description
CN102376099A (en) * 2010-08-19 2012-03-14 北大方正集团有限公司 Method and system for improving vector graph filling effect
CN102436357A (en) * 2010-08-24 2012-05-02 佳能株式会社 Image processing apparatus, image processing method
CN102831428A (en) * 2012-06-30 2012-12-19 东南大学 Method for extracting quick response matrix code region in image
CN103164702A (en) * 2011-12-13 2013-06-19 李卫伟 Extracting method and device of marker central point and image processing system
CN103218989A (en) * 2013-04-09 2013-07-24 广东欧珀移动通信有限公司 Personalized display method and personalized display terminal during picture preloading

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1231800A (en) * 1996-11-26 1999-10-13 西门子公司 Method for encoding a digitalized picture
CN1653487A (en) * 2002-05-10 2005-08-10 比特波伊斯有限责任公司 Graphics engine with edge drawing unit and electronic device and memory incorporating a graphics engine
CN101046883A (en) * 2006-03-28 2007-10-03 株式会社东芝 Graphics-rendering apparatus
US20070263926A1 (en) * 2006-05-11 2007-11-15 Yoshiyuki Kokojima Image processing apparatus, image processing method, and image processing program
CN101211462A (en) * 2007-12-21 2008-07-02 炬力集成电路设计有限公司 Vector graph acceleration method and multimedia player
CN101388157A (en) * 2008-09-25 2009-03-18 炬力集成电路设计有限公司 Electronic map display packing, apparatus and equipment
CN101826213A (en) * 2010-04-20 2010-09-08 杭州电子科技大学 Method for filling area based on chain code description
CN102376099A (en) * 2010-08-19 2012-03-14 北大方正集团有限公司 Method and system for improving vector graph filling effect
CN102436357A (en) * 2010-08-24 2012-05-02 佳能株式会社 Image processing apparatus, image processing method
CN103164702A (en) * 2011-12-13 2013-06-19 李卫伟 Extracting method and device of marker central point and image processing system
CN102831428A (en) * 2012-06-30 2012-12-19 东南大学 Method for extracting quick response matrix code region in image
CN103218989A (en) * 2013-04-09 2013-07-24 广东欧珀移动通信有限公司 Personalized display method and personalized display terminal during picture preloading

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
JOHN WALKENBACH 等: "《中文版 Office 2010宝典》", 30 September 2012 *
OFFICE办公助手: "使用Word制作公章的方法", 《豆瓣 WORD教程》 *

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104134201A (en) * 2014-07-31 2014-11-05 广东威创视讯科技股份有限公司 Texture image stitching method and device
CN104134201B (en) * 2014-07-31 2017-03-29 广东威创视讯科技股份有限公司 The method and apparatus of texture image splicing
CN107833227A (en) * 2017-10-31 2018-03-23 苏州乐米信息科技股份有限公司 A kind of method for drafting and its system of circular clipping region
CN107833227B (en) * 2017-10-31 2021-11-26 苏州乐米信息科技股份有限公司 Drawing method and system for circular cutting area
WO2020103036A1 (en) * 2018-11-21 2020-05-28 Boe Technology Group Co., Ltd. A method of real-time image processing based on rendering engine and a display apparatus
US11263805B2 (en) 2018-11-21 2022-03-01 Beijing Boe Optoelectronics Technology Co., Ltd. Method of real-time image processing based on rendering engine and a display apparatus

Similar Documents

Publication Publication Date Title
CN102122502B (en) Method and related device for displaying three-dimensional (3D) font
US10410398B2 (en) Systems and methods for reducing memory bandwidth using low quality tiles
US20160379335A1 (en) Graphics pipeline method and apparatus
US10540789B2 (en) Line stylization through graphics processor unit (GPU) textures
CN111727424A (en) Adaptive interface conversion across display screens
CN107015788A (en) Animation shows the method and apparatus of image on the mobile apparatus
US20150348280A1 (en) Dynamic Generation Of Texture Atlases
US20130215045A1 (en) Stroke display method of handwriting input and electronic device
US10043233B1 (en) Digital media environment for processing vector objects of vector artwork
US9286657B1 (en) Efficient image processing using dynamically sized tiles
US11069020B2 (en) Graphics processing using multiple primitives
KR20190099853A (en) Electronic apparatus, method for processing image and computer-readable recording medium
CN103593862A (en) Image display method and control unit
TWI698834B (en) Methods and devices for graphics processing
US8761543B2 (en) Image processing using bounds adjustment
CN105378798B (en) For the anti-aliasing of geometric figure
US9811945B2 (en) On-demand transformation aware shape tessellation
CN105912257B (en) Image blend treating method and apparatus
CN103826058A (en) Image processing method and device for enhancing image quality by using different coefficients according to regions
US20150015586A1 (en) Systems and methods for rendering and downsampling an image
US9189872B2 (en) Bezier arc approximation spring system
US11869123B2 (en) Anti-aliasing two-dimensional vector graphics using a compressed vertex buffer
US8866842B2 (en) Adaptive content authoring
US8731338B1 (en) Image downscaling
JP2014219746A (en) Map drawing device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
AD01 Patent right deemed abandoned

Effective date of abandoning: 20170822

AD01 Patent right deemed abandoned