CN107391148A - View elements store method, device, electronic equipment and computer-readable storage medium - Google Patents
View elements store method, device, electronic equipment and computer-readable storage medium Download PDFInfo
- Publication number
- CN107391148A CN107391148A CN201710629552.2A CN201710629552A CN107391148A CN 107391148 A CN107391148 A CN 107391148A CN 201710629552 A CN201710629552 A CN 201710629552A CN 107391148 A CN107391148 A CN 107391148A
- Authority
- CN
- China
- Prior art keywords
- rectangle
- view
- view elements
- minimum rectangle
- length
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
Abstract
The application provides a kind of view elements store method, device, electronic equipment and computer-readable storage medium, wherein, view elements store method includes:Determine to include the minimum rectangle of all view elements in view page;The view elements are preserved according to the minimum rectangle.View elements store method, device, electronic equipment and the computer-readable storage medium provided by the embodiment of the present application, so that all view elements can normally be shown in view page, simultaneously, avoid after view page roams, and without white space caused by writing view elements so that preserving content optimal can show.
Description
Technical field
The application is related to field of computer technology, more particularly to a kind of view elements store method, device, electronic equipment and
Computer-readable storage medium.
Background technology
With the development of multimedia technology, intelligent display device comes into daily life, such as in teaching, meeting
The occasions such as view, the account of personal or family are through commonly used electronic whiteboard, electronic chart and painting software etc..
After user is write in the display device, it is expected to save written contents, be easy to record and share.Than
Such as, the method for preserving written contents is provided in electronic whiteboard typically to the written contents progress sectional drawing in blank, with picture
Mode preserves.And in actual applications, in order to obtain bigger writing region in blank, it will usually add roam mode, overflow
Trip pattern is to move or scale a kind of pattern of blank content by mouse or touch gestures.When roaming obtains bigger book
After writing region, user can be write in new region, add new element, now the ratio of the actual space-consuming of blank
Also change therewith with size.The mode for carrying out sectional drawing to blank content at present mainly has two kinds:The first, no matter current roaming
How much are offset and amount of zoom, carry out sectional drawing with the whiteboard area content in the range of screen display all the time, so result in screen
The content of outside can not shown in sectional drawing, the situation of contents lost occurs;Second, made with the actual occupancy size of blank
For sectional drawing size.In this case, when blank is after roaming, do not write, when being also not added with element, the actual occupancy of blank is big
Small still to become big, a large amount of white spaces occur in the page of such sectional drawing.
The content of the invention
The application provides a kind of view elements store method, device, electronic equipment and computer-readable storage medium.To solve to protect
View elements in the file deposited be present to lose or the problem of a large amount of white spaces occur.
A kind of view elements store method is provided according to the first aspect of the embodiment of the present application, including:Determine view page
In include the minimum rectangles of all view elements;The view elements are preserved according to the minimum rectangle.
Further, it is described to be preserved the view elements according to the minimum rectangle, including:The minimum rectangle is entered
Row adjustment, is adjusted rectangle;The view elements are preserved according to the adjustment rectangle.
Further, it is described that the minimum rectangle is adjusted, rectangle is adjusted, including:In the minimum rectangle
Surrounding addition predesigned compensation value lay edges away from obtaining the adjustment rectangle.
Further, it is described that the minimum rectangle is adjusted, rectangle is adjusted, including:If the minimum rectangle
Length be less than preset length, then the minimum rectangle length direction add length offset lay edges away from;And if institute
The width for stating minimum rectangle is less than predetermined width, then the blank of width compensation value is added in the width to the minimum rectangle
Back gauge;Wherein, the length offset is equal to the difference of the length of the preset length and the minimum rectangle, the width compensation
Value is equal to the predetermined width and the difference of the width of the minimum rectangle, and the view elements are in the adjustment rectangle
Heart position.
Further, it is described that the minimum rectangle is adjusted, rectangle is adjusted, including:Determine the minimum square
The length-width ratio of shape, the length-width ratio is adjusted to default length-width ratio, to obtain the adjustment rectangle.
Further, it is described to be preserved the view elements according to the minimum rectangle, including:Construct rectangular object;Root
According to the minimum rectangle size, the view elements are filled into the rectangular object;Described in the rectangular object
View elements preserve.
It is described the view elements to be filled into the rectangular object according to the minimum rectangle size, including:Construction
View paintbrush;According to the minimum rectangle size and the view elements to the view paintbrush assignment;Described in after assignment
View paintbrush is filled into the rectangular object.
Further, the view elements by the rectangular object preserve, including:Construct bitmap object;Will
The view elements in the rectangular object are plotted in the bitmap object;The bitmap object is preserved.
Further, it is described that the view elements are filled into the rectangular object, including:Acquisition includes the view
The parent container of element;The view elements in the parent container are filled into the rectangular object.
A kind of view elements save set is provided according to the second aspect of the embodiment of the present application, including:Determining module, it is used for
Determine to include the minimum rectangle of all view elements in view page;Preserving module, described in being incited somebody to action according to the minimum rectangle
View elements preserve.
A kind of electronic equipment is provided according to the third aspect of the embodiment of the present application, including:At least one processor;And
The memory being connected with least one processor communication;Wherein, have can be by least one place for the memory storage
The instruction that device performs is managed, the instruction is by least one computing device, so that at least one processor can be held
The above-mentioned view elements store method of row.
A kind of computer-readable storage medium is provided according to the fourth aspect of the embodiment of the present application, is stored with the executable finger of computer
Order, computer executable instructions are used to perform above-mentioned view elements store method.
The view elements store method, device, electronic equipment and computer-readable storage medium of the embodiment of the present application, due to minimum
All view elements are contained in rectangle, so view page can be ensured in the file content preserved according to minimum rectangle size
All view elements can normally be shown in face, meanwhile, avoid after view page roams, and without writing view member
A large amount of white spaces caused by element so that preserving content optimal can show.
It should be appreciated that the general description and following detailed description of the above are only exemplary and explanatory, not
The application can be limited.
Brief description of the drawings
Fig. 1 is a kind of flow chart of view elements store method shown in the embodiment of the present application;
Fig. 2 is schematic diagram when a kind of view page shown in the embodiment of the present application does not roam;
Fig. 3 is schematic diagram when a kind of view page shown in the embodiment of the present application roams;
Fig. 4 is schematic diagram when another view page shown in the embodiment of the present application roams;
Fig. 5 is a kind of signal of preservation file for being preserved view elements according to minimum rectangle shown in the embodiment of the present application
Figure;
Fig. 6 is the stream of one embodiment the step of view elements are preserved according to minimum rectangle in embodiment illustrated in fig. 1
Cheng Tu;
Fig. 7 is the flow chart of another view elements store method shown in the embodiment of the present application;
Fig. 8 be a kind of surrounding to minimum rectangle shown in the embodiment of the present application add lay edges away from schematic diagram;
Fig. 9 is a kind of structured flowchart of view elements save set shown in the embodiment of the present application;
Figure 10 is the structured flowchart of a kind of electronic equipment shown in the embodiment of the present application.
Embodiment
Here exemplary embodiment will be illustrated in detail, its example is illustrated in the accompanying drawings.Following description is related to
During accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represent same or analogous key element.Following exemplary embodiment
Described in embodiment do not represent all embodiments consistent with the application.On the contrary, they be only with it is such as appended
The example of the consistent apparatus and method of some aspects be described in detail in claims, the application.
It is only merely for the purpose of description specific embodiment in term used in this application, and is not intended to be limiting the application.
" one kind " of singulative used in the application and appended claims, " described " and "the" are also intended to including majority
Form, unless context clearly shows that other implications.It is also understood that term "and/or" used herein refers to and wrapped
Containing the associated list items purpose of one or more, any or all may be combined.
It will be appreciated that though various information, but this may be described using term first, second, third, etc. in the application
A little information should not necessarily be limited by these terms.These terms are only used for same type of information being distinguished from each other out.For example, do not departing from
In the case of the application scope, the first information can also be referred to as the second information, and similarly, the second information can also be referred to as
One information.Depending on linguistic context, word as used in this " if " can be construed to " ... when " or " when ...
When " or " in response to determining ".
Fig. 1 is a kind of flow chart for view elements store method that the exemplary embodiment of the application one provides, and the application is real
The preservation for the written contents that the view elements store method of example can be applied in display device is applied, the view elements are included in writing
The one or more in word, figure and form in appearance.Such as:Preservation, the drawing of written contents in electronic whiteboard software
Preservation of written contents etc. in software.The file of the view elements of preservation can be picture format.The embodiment of the present application regards
Pel element store method includes step 11 to step 12.Wherein,
In a step 11, determine to include the minimum rectangle of all view elements in view page.
In step 12, view elements are preserved according to minimum rectangle.
Illustrated below by taking electronic whiteboard as an example.
As shown in Fig. 2, Fig. 3 and Fig. 4, the view page 21 in the embodiment of the present application can be the display window of electronic whiteboard
It is used for the writing pictures for writing view elements 22 in mouth 24.In actual applications, user can pass through mouse, keyboard or touch
Gesture moves or scaled view page 21, roams view page 21, and to obtain bigger writing scope, addition is more
View elements 22.When view page 21 roams, and when random zone with the addition of view elements 22, display window
24 are only able to display partial view element 22, and view is moved or scale by dragging mouse, keyboard shortcut or touch gestures
The page 21, view elements 22 whole in view page 21 can be shown.Show that view page 21 is unrestrained without occurring in Fig. 2
Schematic diagram during trip, Fig. 3 and Fig. 4 show schematic diagram when view page 21 roams.
With reference to figure 2, the minimum rectangle 23 in the embodiment of the present application is that can include all view elements in view page 21
22 smallest size of rectangle.The coordinate value of each view elements 22 can be first determined, then according to each view elements 22
Coordinate value determines minimum rectangle 23.
It is determined that after minimum rectangle 23, view elements 22 can be preserved according to minimum rectangle 23.Preserve file such as Fig. 5
It is shown.So, the size of the file of preservation is identical with the size of minimum rectangle 23, and view elements 22 are close to the side of the file page
Edge, it can so reach less capacity and take.As shown in Figure 5, both contained in the file preserved according to minimum rectangle 23
All view elements, it will not include again because of white space caused by roaming.
In an optional embodiment, step 12 can include sub-step 121, sub-step 122 and sub-step 123.Such as
Shown in Fig. 6, wherein:
In sub-step 121, rectangular object is constructed.
In sub-step 122, according to minimum rectangle size, view elements are filled into rectangular object.
In an optional embodiment, can using WPF, (Windows Presentation Foundation are based on
Windows user interface frame) technical construction view paintbrush (VisualBrush), and according to minimum rectangle size and view
Element is to the view paintbrush assignment;View paintbrush is usually drawn using UI members, and the drawing area of view paintbrush is the minimum
Rectangle, then the view paintbrush after assignment is filled into rectangular object.
In another optional embodiment, the view in parent container can be got by the reflection technology in C# language
Element, then the view elements in parent container are to the view paintbrush assignment.Then the view paintbrush after assignment is filled
Into rectangular object.For ensure view elements can former ratio draw out, can also by the way of adaptive according to father
View elements in level container are to view paintbrush assignment.Then the view paintbrush after assignment is filled into rectangular object.
In sub-step 123, the view elements in rectangular object are preserved.
In an optional embodiment, bitmap object (RenderTargetBitmap) can be first constructed, and by rectangle pair
View elements as in are plotted in bitmap object, are then preserved the bitmap object.The size of the bitmap so preserved is
The size of minimum rectangle., can be to the wide high progress assignment of pixel of view elements bitmap object in another optional embodiment.
For example assignment, then point of the bitmap preserved are carried out to the wide height of pixel of bitmap object according to the resolution ratio for the bitmap for it is expected to preserve
Resolution is desired resolution ratio.In a further embodiment, can be according to specified lattice when the bitmap object is preserved
Formula, storing path, bitmap object is preserved.
In another optional embodiment, a rectangle frame object can also be constructed, the content of the rectangle frame object is square
Shape object, the background of rectangle frame object are the background of view page.Then the rectangle frame object can be assigned according to Output Size
Value, the Output Size for the bitmap of user's desired output size, then according to the Output Size by the view in rectangular object
Element preserves.
In the embodiment of the present application, due to containing all view elements 22 in minimum rectangle 23, so according to minimum square
It can ensure that all view elements 22 can normally be shown in view page in the file content that shape 23 preserves.Meanwhile avoid
After view page roams, and without a large amount of white spaces caused by writing view elements 22 so that preserve file
Content optimal can be shown.
Fig. 7 be the exemplary embodiment of the application one provide another view elements store method flow chart, the application
The view elements store method of embodiment includes step 71 to step 73.Wherein,
In step 71, determine to include the minimum rectangle of all view elements in view page.
In step 72, minimum rectangle is adjusted, is adjusted rectangle.
In step 73, view elements are preserved according to adjustment rectangle.
In the present embodiment, can be first to minimum it is determined that after the complete minimum rectangle 23 comprising all view elements 22
Rectangle 23 is adjusted, and is adjusted rectangle 25, as shown in Figure 8.Then view elements 22 are preserved according to adjustment rectangle 25, this
Sample, the document size of preservation are identical with the size for adjusting rectangle 25.
, can be in the blank of the surrounding addition predesigned compensation value of minimum rectangle 23 with reference to figure 8 in an optional embodiment
Back gauge, it is adjusted rectangle 25.The predesigned compensation value can be set in software program, such as 20 pixel units.It is then minimum
20 pixel units are spaced between rectangle 23 and adjustment rectangle 25.In the file preserved according to adjustment rectangle 25, view elements 22
Surrounding there is the white edges of 20 pixel units, so more meet user checks custom.But in practical application, predesigned compensation
Value can also be other default values, such as, can depending on the size of minimum rectangle 23, such as, the chi of minimum rectangle 23
When very little larger, it can suitably increase predesigned compensation value, to cause there is broader white edge according to the file that adjustment rectangle 25 preserves,
So that the page of the file preserved seems more to coordinate.
In another optional embodiment, if the length of minimum rectangle 23 is less than preset length, in minimum rectangle 23
Length direction addition length offset lay edges away from;Wherein, length offset is equal to the length of preset length and minimum rectangle 23
The difference of degree.In an optional embodiment, the length of display window 24 can be arranged to preset length, i.e.,:Minimum rectangle 23
Length be less than display window 24 length when, according to both length differences to minimum rectangle 23 add lay edges away from so that most
The length of small rectangle 23 is equal to the length (i.e. preset length) of display window 24.Specifically, can be respectively in minimum rectangle 23
The right and left add size for the half of length offset lay edges away from.It can so make it that view elements 22 are whole
Body is positioned at the center of adjustment rectangle 25.Likewise, if the width of minimum rectangle 23 is less than predetermined width, in minimum rectangle
The lay edges of 23 width addition width compensation value away from, wherein, width compensation value is equal to predetermined width and minimum rectangle 23
Width difference.Equally the width of display window 24 can also be arranged to predetermined width, in the width of minimum rectangle 23
Add width compensation value lay edges away from method with minimum rectangle 23 length direction add length offset lay edges away from
Method it is similar, do not repeating herein.
In another optional embodiment, or preset length and predetermined width set a fixed value, such as default
Length is 1280 pixel units, and predetermined width is 720 pixel units.To preset length and predetermined width in right the embodiment of the present application
Occurrence be not construed as limiting.The present embodiment can enter when view page 21 is without roaming to the size of minimum rectangle 23
Row adjustment so that the size of adjustment rectangle 25 is equal to default standard size (such as size of display window 24), so that root
The file preserved according to adjustment rectangle 25 has preferable size.
In another optional embodiment, if the length of minimum rectangle 23 is less than preset length (such as length of display window 24
Degree), and when the width of minimum rectangle 23 is more than or equal to predetermined width.Length can be added in the length direction of minimum rectangle 23
The lay edges of offset is spent away from and the width in minimum rectangle 23 does not process.I.e.:The length of obtained adjustment rectangle 25
Equal to preset length, the width of adjustment rectangle 25 is equal to the width of minimum rectangle 23.Or can also be in the length of minimum rectangle 23
The lay edges of direction addition length offset is spent away from and in the width addition predesigned compensation value (such as 20 of minimum rectangle 23
Individual pixel unit) lay edges away from.I.e.:The length of obtained adjustment rectangle 25 is equal to preset length, adjusts the width of rectangle 25
Width equal to minimum rectangle 23 adds 20 pixel units.
In another optional embodiment, if the width of minimum rectangle 23 is less than predetermined width (such as width of display window 24
Degree), and when the length of minimum rectangle 23 is more than or equal to preset length.Then width is added in the width of minimum rectangle 23
The lay edges of offset is away from and the length direction in minimum rectangle 23 does not process.I.e.:Obtained width of adjustment rectangle 25 etc.
In predetermined width, the length of adjustment rectangle 25 is equal to the length of minimum rectangle 23.Or can also minimum rectangle 23 width side
To addition width compensation value lay edges away from, and minimum rectangle 23 length direction add predesigned compensation value (such as 20 pictures
Primitive unit cell) lay edges away from.I.e.:The width of obtained adjustment rectangle 25 is equal to predetermined width, and the length of adjustment rectangle 25 is equal to
The length of minimum rectangle 23 adds 20 pixel units.
In another optional embodiment, when being adjusted to minimum rectangle 23, minimum rectangle 23 can be first determined
Length-width ratio, the length-width ratio is then adjusted to default length-width ratio, to be adjusted rectangle 25.In the present embodiment, length and width are preset
Than the length-width ratio that can be display window 24.Can be identical by increasing in the right and left of minimum rectangle 23 or upper and lower both sides
The lay edges of size is away to cause the length-width ratio for adjusting rectangle 25 to be equal to default length-width ratio (such as length-width ratio of display window 24).
In practical application, default length-width ratio can also be other values, such as 16:9、4:3 etc..So, the file tool preserved can be caused
There is preferably Aspect Ratio so that the file of preservation optimal can be shown.
In the embodiment of the present application, user can be selected on the page of the electronic whiteboard software of smart machine to view member
The preservation type of element 22.Smart machine can be adjusted according to the preservation type that the user received selects to minimum rectangle 23
It is whole.Such as:User can write view elements 22 in the view page 21 of electronic whiteboard, after the completion of writing, can pass through a little
The save button hit in display interface, the content of writing is preserved, when smart machine receives the preservation request of user, can carried
Option for preserving type, such as:Optimal display result, best image ratio, minimum capacity take, wide display, isometric aobvious
Show etc..User can select corresponding type as needed, after smart machine receives the request of preservation type of user, root
Minimum rectangle 23 is adjusted according to corresponding strategy, and preserved according to adjustment rectangle 25.It is such as optimal aobvious when receiving
When showing the preservation request of effect, the lay edges of predesigned compensation value is added away from then by view elements in the surrounding of minimum rectangle 23
22 preserve;When the preservation for receiving best image ratio is asked, the length-width ratio of minimum rectangle 23 is adjusted to default length-width ratio,
Then view elements 22 are preserved;When receiving the preservation request of minimum capacity occupancy, minimum rectangle 23 is not adjusted, directly
Connect and preserved view elements 22 according to minimum rectangle 23 etc..
Corresponding with the embodiment of aforesaid figures element store method, present invention also provides view elements save set
Embodiment.It refer to Fig. 9.
View elements save set includes:Determining module 91 and preserving module 92.Wherein,
Determining module 91 is used to determine to include the minimum rectangle of all view elements in view page;Preserving module 92 is used for
View elements are preserved according to the minimum rectangle that determining module 91 determines.
In an optional embodiment, preserving module 92 is used to be adjusted the minimum rectangle that determining module 91 determines,
It is adjusted rectangle;And view elements are preserved according to adjustment rectangle.In the embodiment of the present application, preserving module 92 can basis
Preset strategy is adjusted to minimum rectangle, to be adjusted rectangle.Such as:In one embodiment, preserving module 92 can be with
Minimum rectangle surrounding add predesigned compensation value lay edges away from;The predesigned compensation value can be set in software program, than
Such as 20 pixels.In another embodiment, if the length of minimum rectangle is less than preset length, in the length direction of minimum rectangle
The lay edges of length offset is added away to cause the length for adjusting rectangle to be equal to preset length, if the width of minimum rectangle is small
In predetermined width, then the lay edges of width compensation value is added away to adjust the width of rectangle in the width of minimum rectangle
Degree is equal to predetermined width;In another embodiment, the length-width ratio of minimum rectangle can be first determined, then adjusts the length-width ratio
To default length-width ratio, to be adjusted rectangle.
In another optional embodiment, preserving module 92 is additionally operable to construct rectangular object, and view elements are filled into square
In shape object, and according to minimum rectangle size then rectangular object assignment is preserved view elements according to assigned result.
The function of determining module 91 and preserving module 92 in the embodiment of the present application can realize by processor, the processor
In be configured with programmed instruction, the programmed instruction preserve in memory, when programmed instruction is performed, above-mentioned implementation can be realized
The view elements store method of example.
The function of unit and the implementation process of effect specifically refer to and step are corresponded in the above method in said apparatus
Implementation process, it will not be repeated here.
For device embodiment, because it corresponds essentially to embodiment of the method, so related part is real referring to method
Apply the part explanation of example.Device embodiment described above is only schematical, wherein described be used as separating component
The unit of explanation can be or may not be physically separate, can be as the part that unit is shown or can also
It is not physical location, you can with positioned at a place, or can also be distributed on multiple NEs.Can be according to reality
Need to select some or all of module therein to realize the purpose of application scheme.Those of ordinary skill in the art are not paying
In the case of going out creative work, you can to understand and implement.
Present invention also provides a kind of electronic equipment, and as shown in Figure 10, the electronic equipment includes:At least one processor
101 and the memory 102 with the communication connection of at least one processor 101, said by taking a processor 101 as an example in Figure 10
It is bright.
Electronic equipment can also include:Input unit 103 and output device 104.
Processor 101, memory 102, input unit 103 and output device 104 can pass through bus or other modes
Connect, in Figure 10 exemplified by being connected by bus.
Memory 102 is used as a kind of non-transient computer readable storage medium storing program for executing, available for storing non-transient software program, non-
Transient computer executable program and module, the program as corresponding to the view elements store method in the embodiment of the present invention refer to
Order/module (for example, determining module 91 and preserving module 92 shown in accompanying drawing 9).Processor 101 is stored in storage by operation
Non-transient software program, instruction and module in device 102, at the various function application and data of execute server
Reason, that is, realize the view elements store method in above method embodiment.
Memory 102 can include storing program area and storage data field, wherein, storing program area can store operation system
Application program required for system, at least one function;Storage data field, which can store the processing unit operated according to list items, to be made
With data created etc..In addition, memory 102 can include high-speed random access memory, non-transient deposit can also be included
Reservoir, for example, at least a disk memory, flush memory device or other non-transient solid-state memories.In some embodiments
In, memory 102 is optional including that can pass through net relative to the remotely located memory of processor 101, these remote memories
Network is connected to the processor for view elements store method.The example of above-mentioned network includes but is not limited to internet, in enterprise
Portion's net, LAN, mobile radio communication and combinations thereof.
Input unit 103 can receive the numeral or character information of input, and produce the processing unit with list items operation
User set and function control it is relevant key signals input.Output device 104 may include the display devices such as display screen.
In the present embodiment, when the one or more modules stored in memory 102 are (for example, cover half really shown in accompanying drawing 9
Block 91 and preserving module 92) when being performed by one or more of processors 101, processor 101 performs above-mentioned any means
View elements store method in embodiment.
The electronic equipment of the embodiment of the present invention exists in a variety of forms, includes but is not limited to:
(1) mobile communication equipment:The characteristics of this kind equipment is that possess mobile communication function, and to provide speech, data
Communicate as main target.This Terminal Type includes:Smart mobile phone (such as iPhone), multimedia handset, feature mobile phone, and it is low
Hold mobile phone etc..
(2) super mobile personal computer equipment:This kind equipment belongs to the category of personal computer, there is calculating and processing work(
Can, typically also possess mobile Internet access characteristic.This Terminal Type includes:PDA, MID and UMPC equipment etc., such as Intelligent flat
Present invention also provides a kind of computer-readable storage medium, is stored with computer executable instructions, and computer can perform
Instruct for performing the view elements store method in above-mentioned any means embodiment.
The preferred embodiment of the application is the foregoing is only, not limiting the application, all essences in the application
God any modification, equivalent substitution and improvements done etc., should be included within the scope of the application protection with principle.
Claims (12)
- A kind of 1. view elements store method, it is characterised in that including:Determine to include the minimum rectangle of all view elements in view page;The view elements are preserved according to the minimum rectangle.
- 2. according to the method for claim 1, it is characterised in that described to be protected the view elements according to the minimum rectangle Deposit, including:The minimum rectangle is adjusted, is adjusted rectangle;The view elements are preserved according to the adjustment rectangle.
- 3. according to the method for claim 2, it is characterised in that it is described that the minimum rectangle is adjusted, it is adjusted Rectangle, including:The lay edges of predesigned compensation value is added away from obtaining the adjustment rectangle in the surrounding of the minimum rectangle.
- 4. according to the method for claim 2, it is characterised in that it is described that the minimum rectangle is adjusted, it is adjusted Rectangle, including:If the length of the minimum rectangle is less than preset length, length offset is added in the length direction of the minimum rectangle Lay edges away from;AndIf the width of the minimum rectangle is less than predetermined width, width compensation is added in the width to the minimum rectangle The lay edges of value away from;Wherein, the length offset is equal to the difference of the length of the preset length and the minimum rectangle, the width compensation Value is equal to the predetermined width and the difference of the width of the minimum rectangle, and the view elements are in the adjustment rectangle Heart position.
- 5. according to the method for claim 2, it is characterised in that it is described that the minimum rectangle is adjusted, it is adjusted Rectangle, including:The length-width ratio of the minimum rectangle is determined, the length-width ratio is adjusted to default length-width ratio, to obtain the adjustment rectangle.
- 6. according to the method for claim 1, it is characterised in that described to be protected the view elements according to the minimum rectangle Deposit, including:Construct rectangular object;According to the minimum rectangle size, the view elements are filled into the rectangular object;The view elements in the rectangular object are preserved.
- 7. according to the method for claim 6, it is characterised in that it is described according to the minimum rectangle size, by the view Element is filled into the rectangular object, including:Construct view paintbrush;According to the minimum rectangle size and the view elements to the view paintbrush assignment;The view paintbrush after assignment is filled into the rectangular object.
- 8. according to the method for claim 6, it is characterised in that described that the view elements are filled into the rectangular object In, including:Obtain the parent container for including the view elements;The view elements in the parent container are filled into the rectangular object.
- 9. according to the method for claim 6, it is characterised in that the view elements by the rectangular object are protected Deposit, including:Construct bitmap object;The view elements in the rectangular object are plotted in the bitmap object;The bitmap object is preserved.
- A kind of 10. view elements save set, it is characterised in that including:Determining module, for determining to include the minimum rectangle of all view elements in view page;Preserving module, for being preserved the view elements according to the minimum rectangle.
- 11. a kind of electronic equipment, it is characterised in that including:At least one processor;AndThe memory being connected with least one processor communication;Wherein,The memory storage has can be by the instruction of at least one computing device, and the instruction is by least one place Manage device to perform, so that at least one processor is able to carry out the view any one of claim 1 to claim 9 Element store method.
- 12. a kind of computer-readable storage medium, it is characterised in that be stored with computer executable instructions, computer executable instructions For the view elements store method any one of perform claim requirement 1 to claim 9.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710629552.2A CN107391148B (en) | 2017-07-28 | 2017-07-28 | View element saving method and device, electronic equipment and computer storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710629552.2A CN107391148B (en) | 2017-07-28 | 2017-07-28 | View element saving method and device, electronic equipment and computer storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107391148A true CN107391148A (en) | 2017-11-24 |
CN107391148B CN107391148B (en) | 2020-09-15 |
Family
ID=60341551
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710629552.2A Active CN107391148B (en) | 2017-07-28 | 2017-07-28 | View element saving method and device, electronic equipment and computer storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107391148B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108762628A (en) * | 2018-04-23 | 2018-11-06 | 广州视源电子科技股份有限公司 | Page elements move display methods, device, terminal device and storage medium |
CN109062471A (en) * | 2018-07-10 | 2018-12-21 | 广州视源电子科技股份有限公司 | Mobile display methods, device, equipment and the medium of page elements |
CN114419193A (en) * | 2022-01-24 | 2022-04-29 | 北京思明启创科技有限公司 | Image drawing method, image drawing device, electronic equipment and computer-readable storage medium |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101878488A (en) * | 2007-08-08 | 2010-11-03 | M·皮尔基奥 | Method to animate on a computer screen a virtual pen which writes and draws |
CN102685363A (en) * | 2012-05-29 | 2012-09-19 | 山东神思电子技术股份有限公司 | Picture storing method for copying equipment |
US20130051607A1 (en) * | 2011-08-29 | 2013-02-28 | Dst Technologies, Inc. | Candidate Identification by Image Fingerprinting and Model Matching |
US20140297606A1 (en) * | 2013-03-28 | 2014-10-02 | Nec (China) Co., Ltd. | Method and device for processing a time sequence based on dimensionality reduction |
CN104731390A (en) * | 2013-12-18 | 2015-06-24 | 深圳富泰宏精密工业有限公司 | System and method for saving original handwriting |
CN105843515A (en) * | 2016-05-31 | 2016-08-10 | 宇龙计算机通信科技(深圳)有限公司 | Method and device for inputting information |
CN105988747A (en) * | 2015-02-16 | 2016-10-05 | 株式会社理光 | Printing method and printing device |
CN106201172A (en) * | 2016-06-24 | 2016-12-07 | 广州视睿电子科技有限公司 | The painting canvas display packing of a kind of touch screen terminal and device |
-
2017
- 2017-07-28 CN CN201710629552.2A patent/CN107391148B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101878488A (en) * | 2007-08-08 | 2010-11-03 | M·皮尔基奥 | Method to animate on a computer screen a virtual pen which writes and draws |
US20130051607A1 (en) * | 2011-08-29 | 2013-02-28 | Dst Technologies, Inc. | Candidate Identification by Image Fingerprinting and Model Matching |
CN102685363A (en) * | 2012-05-29 | 2012-09-19 | 山东神思电子技术股份有限公司 | Picture storing method for copying equipment |
US20140297606A1 (en) * | 2013-03-28 | 2014-10-02 | Nec (China) Co., Ltd. | Method and device for processing a time sequence based on dimensionality reduction |
CN104731390A (en) * | 2013-12-18 | 2015-06-24 | 深圳富泰宏精密工业有限公司 | System and method for saving original handwriting |
CN105988747A (en) * | 2015-02-16 | 2016-10-05 | 株式会社理光 | Printing method and printing device |
CN105843515A (en) * | 2016-05-31 | 2016-08-10 | 宇龙计算机通信科技(深圳)有限公司 | Method and device for inputting information |
CN106201172A (en) * | 2016-06-24 | 2016-12-07 | 广州视睿电子科技有限公司 | The painting canvas display packing of a kind of touch screen terminal and device |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108762628A (en) * | 2018-04-23 | 2018-11-06 | 广州视源电子科技股份有限公司 | Page elements move display methods, device, terminal device and storage medium |
CN109062471A (en) * | 2018-07-10 | 2018-12-21 | 广州视源电子科技股份有限公司 | Mobile display methods, device, equipment and the medium of page elements |
CN114419193A (en) * | 2022-01-24 | 2022-04-29 | 北京思明启创科技有限公司 | Image drawing method, image drawing device, electronic equipment and computer-readable storage medium |
CN114419193B (en) * | 2022-01-24 | 2023-03-10 | 北京思明启创科技有限公司 | Image drawing method, image drawing device, electronic equipment and computer-readable storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN107391148B (en) | 2020-09-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11144177B2 (en) | Application execution method by display device and display device thereof | |
US10430075B2 (en) | Image processing for introducing blurring effects to an image | |
EP3220249B1 (en) | Method, device and terminal for implementing regional screen capture | |
KR20200097320A (en) | User interface display method, apparatus, device and storage medium | |
US20100313126A1 (en) | Method and apparatus for providing selection area for touch interface | |
US9747007B2 (en) | Resizing technique for display content | |
JP7320617B2 (en) | Form processing method, apparatus, intelligent interactive tablet and storage medium | |
CN107103890B (en) | The method and apparatus of application is shown on fixed-direction display | |
EP2874054B1 (en) | Application text adjusting method, device, and terminal | |
CN104299186A (en) | Method and device for conducting mosaic processing on picture | |
CN107391148A (en) | View elements store method, device, electronic equipment and computer-readable storage medium | |
US9916291B2 (en) | Method, apparatus, and terminal device for displaying multiple input boxes in a web page where display space is limited | |
CN110457102B (en) | Visual object blurring method, visual object rendering method and computing equipment | |
CN109117072B (en) | Writing area control method and system, writing method and system and interactive intelligent tablet | |
CN101996390B (en) | Image copying method and device | |
US11288778B2 (en) | Creation and rasterization of shapes using geometry, style settings, or location | |
CN114625997A (en) | Page rendering method and device, electronic equipment and computer readable medium | |
CN108132716A (en) | Method of adjustment, equipment and the computer readable storage medium of browse page | |
CN110533742B (en) | Image color filling method, device, equipment and storage medium | |
CN111475693A (en) | Method, device and storage medium for screen projection display management | |
CN112465931A (en) | Image text erasing method, related equipment and readable storage medium | |
US10268920B2 (en) | Detection of near rectangular cells | |
CN113254131A (en) | Page background display method and device | |
US20120023414A1 (en) | Method and apparatus for processing e-mail | |
KR101730381B1 (en) | Method, system and non-transitory computer-readable recording medium for controlling scroll based on context information |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |