CN103049884B - A kind of generation method and apparatus of digital whiteboard thumbnail - Google Patents

A kind of generation method and apparatus of digital whiteboard thumbnail Download PDF

Info

Publication number
CN103049884B
CN103049884B CN201210524246.XA CN201210524246A CN103049884B CN 103049884 B CN103049884 B CN 103049884B CN 201210524246 A CN201210524246 A CN 201210524246A CN 103049884 B CN103049884 B CN 103049884B
Authority
CN
China
Prior art keywords
digital
thumbnail
blank
contemporary
white boards
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.)
Expired - Fee Related
Application number
CN201210524246.XA
Other languages
Chinese (zh)
Other versions
CN103049884A (en
Inventor
陆明添
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vtron Group Co 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 CN201210524246.XA priority Critical patent/CN103049884B/en
Publication of CN103049884A publication Critical patent/CN103049884A/en
Application granted granted Critical
Publication of CN103049884B publication Critical patent/CN103049884B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Editing Of Facsimile Originals (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The present invention proposes a kind of generation method of digital whiteboard thumbnail, including step: set up the element copy of Contemporary Digital blank;Obtain the dimension scale of thumbnail and described Contemporary Digital blank;According to described dimension scale by described element copy a little zooming in and out relative to described Contemporary Digital blank;Element copy after scaling is rendered on thumbnail object.The present invention proposes the generating means of a kind of digital whiteboard thumbnail, can improve digital white boards and generate the efficiency of thumbnail.

Description

A kind of generation method and apparatus of digital whiteboard thumbnail
Technical field
The present invention relates to digital white boards control field, particularly relate to the generation side of a kind of digital whiteboard thumbnail Method and device.
Background technology
At present digital white boards uses extensively in education sector and meeting room, user can draw on blank or Add other element, such as: picture;When finding that current whiteboard does not has position to add new element, Yong Huke To first pass through dragging digital white boards to expand the region of blank;Such as: the size of digital white boards when program starts For screen size, when user is left to screen for blank or the right dragging, the width of blank starts to become big; When user drags blank to the upper of screen or lower section, the height of blank also can become big;The most again newly The whiteboard area increased is added new element.
But when the region of digital white boards is increasing, the time required for generation blank thumbnail also becomes The longest;Because generating thumbnail widespread practice is first to render one and blank picture of the same size, so After again element is drawn on the relevant position of this pictures, finally this according to its position on blank one by one Picture narrows down to required thumbnail dimensions.When blank has a wide height the biggest such as 10000*10000 Time, according to traditional breviary map generalization method, the picture size rendered is also for 10000*10000;Computer Time for rendering picture with reduce picture also can become the longest accordingly, the when of because wide height is the biggest, and meter Calculation machine needs the pixel number rendered also can increase accordingly;Because user is actual wide high the biggest On blank after addition element, thumbnail just Flushing success after needing geometric ratio long period of time, it is impossible to meet User uses demand in real time.
So, the efficiency how improving generation digital whiteboard thumbnail is the thing that we are badly in need of solving now.
Summary of the invention
It is an object of the invention to propose the generation method and apparatus of a kind of digital whiteboard thumbnail, can improve Digital white boards generates the efficiency of thumbnail.
The scheme used:
A kind of generation method of digital whiteboard thumbnail, including step:
Set up the element copy of Contemporary Digital blank;
Obtain the dimension scale of thumbnail and described Contemporary Digital blank;
According to described dimension scale by described element copy a little contracting relative to described Contemporary Digital blank Put;
Element copy after scaling is rendered on thumbnail object.
And, the generating means of a kind of digital whiteboard thumbnail, including:
Unit set up by element copy, for setting up the element copy of Contemporary Digital blank;
Dimension scale acquiring unit, for obtaining the dimension scale of thumbnail and described Contemporary Digital blank;
Unit for scaling, is used for white relative to described Contemporary Digital for described element copy according to described dimension scale A little zooming in and out of plate;
Rendering unit, for rendering the element copy after scaling at thumbnail object.
In the present invention, first all blank element copies are reduced, required for this process relative to certain point Time depend on the calculating speed of CPU, the mainly calculating of numerical value is not related to rendering of pixel, so This calculating process only needs the shortest computer processing time, then renders scaling on thumbnail object After digital white boards element copy because thumbnail dimensions is typically the least, required for the pixel number that renders also Can become little accordingly, so rendering Background to have only to the shortest time.Therefore relative to the most universal Thumbnail generating algorithm, the inventive method needs the pixel number rendered to greatly reduce when generating thumbnail, So being greatly improved the formation efficiency of thumbnail, the method when needing the thumbnail generating big quantity simultaneously Effect become apparent from.
Accompanying drawing explanation
Fig. 1 is an embodiment flow chart of the inventive method;
Fig. 2 is a schematic diagram before carrying out digital white boards size renewal in the present invention;
Fig. 3 is to carry out a schematic diagram after dragging digital white boards in the present invention;
Fig. 4 is a schematic diagram after carrying out digital white boards size renewal in the present invention;
Fig. 5 is another schematic diagram after carrying out digital white boards size renewal in the present invention;
Schematic diagram when Fig. 6 is to update digital white boards size in the present invention;
Fig. 7 is to carry out a schematic diagram after dragging digital white boards in the present invention;
Fig. 8 is a schematic diagram after carrying out digital white boards size renewal in the present invention;
Fig. 9 is a structural representation of apparatus of the present invention;
Figure 10 is another structural representation of apparatus of the present invention.
Detailed description of the invention
The present invention proposes a kind of generation method of digital whiteboard thumbnail, one of them embodiment flow chart, as Fig. 1, including step:
S1, set up the element copy of Contemporary Digital blank;
S2, acquisition thumbnail and the dimension scale of Contemporary Digital blank;
Concrete, dimension scale can be: thumbnail and the width ratio of Contemporary Digital blank, and breviary Figure and the height ratio of Contemporary Digital blank.
S3, according to dimension scale by element copy a little zooming in and out relative to Contemporary Digital blank;
Concrete, on the width of Contemporary Digital blank, according to width ratio by element copy relative to A little zooming in and out of Contemporary Digital blank;
In the short transverse of Contemporary Digital blank, according to height ratio by element copy relative to Contemporary Digital A little zooming in and out of blank.
S4, will scaling after element copy render on thumbnail object.
In the present invention, first all blank element copies are reduced, required for this process relative to certain point Time depend on the calculating speed of CPU, the mainly calculating of numerical value is not related to rendering of pixel, so This calculating process only needs the shortest computer processing time, then renders scaling on thumbnail object After digital white boards element copy because thumbnail dimensions is typically the least, required for the pixel number that renders also Can become little accordingly, so rendering Background to have only to the shortest time.Therefore relative to the most universal Thumbnail generating algorithm, the inventive method needs the pixel number rendered to greatly reduce when generating thumbnail, So being greatly improved the formation efficiency of thumbnail, the method when needing the thumbnail generating big quantity simultaneously Effect become apparent from.
During using digital white boards, needing more digital white boards space to carry out addition element, this just needs The size of digital white boards is updated;The digital white boards size update method that the present invention proposes is:
When digital white boards is not completely covered display screen, expand the size of digital white boards to the direction of display screen, Display screen is completely covered.
As in figure 2 it is shown, when starting, the size of digital white boards and display screen are in the same size wherein, ABCD Represent display screen area.
Drag digital white boards to the direction, the upper left corner of display screen, digital white boards be dragged to position shown in Fig. 3, Wherein, A1, B1, C1 and D1 represent 4 summits of digital white boards;A, B, C, D represent display 4 summits of screen;According to the update method of the digital white boards size that the present invention proposes, owing to, in Fig. 3, counting Word blank is not completely covered display screen, then expand the region of digital white boards to display screen direction, wherein expand After a schematic diagram refer to Fig. 4, the digital white boards region after expansion is A1B3C3D3, and its region does not limits In diagram, can infinitely extend in theory.But due to, need to generate the thumbnail of digital white boards, if number Word blank oversize, thumbnail will be the least, so that invisible;The most actually can't be ad infinitum Expand the size of digital white boards.
After the size of digital white boards has updated, carry out setting up the step of the element copy of Contemporary Digital blank.
Digital white boards concrete may is that of size update method that the present invention proposes
Obtain the primary importance of digital white boards when starting to drag;
Obtain the second position of digital white boards when terminating to drag;
The side-play amount of digital white boards is obtained according to primary importance and the second position;
Expand the size of digital white boards according to side-play amount to display screen direction, display screen is completely covered.
For convenience of understanding, illustrate below in conjunction with accompanying drawing.
In one embodiment, set up with the summit in the display screen upper left corner as initial point, AB direction be X-axis just It it is the rectangular coordinate system of Y-axis forward to, CA direction;
Obtain the coordinate of the primary importance of digital white boards when starting to drag, can store it in rectangle variable; Wherein, it is also possible to the size of digital white boards now is stored in rectangle variable;The concrete shape of rectangle variable Formula can be that (x, y, w, h), x is the X-axis coordinate of reference point in digital white boards;Y is in digital white boards The Y-axis coordinate of reference point;W is the width of digital white boards;H is the height of digital white boards.
Select the top left corner apex of digital white boards as this reference point traditionally.When dragging digital white boards for the first time, Digital white boards is in the same size with display screen, the most now rectangle variable be (0,0, w, h);
Obtain the coordinate of the second position of digital white boards at the end of dragging;If at the end of Tuo Donging, digital white boards Position, as it is shown on figure 3, then obtain the coordinate of digital white boards top left corner apex A1, is set to (-10,5), then Now the rectangle variable of digital white boards be (-10,5, w, h);
Then, the side-play amount obtaining primary importance and the second position be (-10,5, w, h);I.e., at X On direction of principal axis, digital white boards left shift-10;In the Y-axis direction, digital white boards offsets up 5;
The width of digital white boards is expanded to display screen direction 10;By the height of digital white boards to display screen direction Expand 5.Obtaining the digital white boards region shown in Fig. 5 is: A1B2C2D.
As shown in Figure 6, when dragging digital white boards to the lower section of display screen, according to the digital dash board of the present invention Size update method, the digital white boards region after being expanded is the ABC1D1 shown in Fig. 6.
Another situation, before dragging digital white boards, the size of digital white boards alreadys more than the big of display screen Little;And cover all display screen, as shown in Figure 7;At the end of dragging, the position of digital white boards such as Fig. 8 Shown in, still cover all display screen, digital white boards is not carried out the renewal of size.
During dragging digital white boards, the element in digital white boards moves the most together, the side-play amount of movement and number The side-play amount of word blank is the same, and the purpose of do so is, visually lets the user know that drag operation enters OK, the position after more new element is dragged on software inhouse.
When carrying out step S4, concrete, the opportunity that thumbnail generates can be that user terminates blank drag operation Or in digital white boards, the situation such as add after new element.Thumbnail usually generate smaller picture (as 50*50), it will be assumed now that the size of required thumbnail is (w1, h1), w1, h1 are the width of digital white boards And height;Contemporary Digital blank rectangle variate-value is (x, y, w2, h2).W2, h2 are digital white boards Width and height;Calculating thumbnail size and the ratio of blank actual size, width ratio d1=w1/w2, Height ratio d2=h1/h2.Then choosing any point in rectangle variable region (is i.e. in digital white boards Any point, because rectangle variable represents physical location and the size of Contemporary Digital blank), every on blank One element sets up a copy, and all elements copy zooms in and out both relative to this point, zoom ratio be (d1, D2), because blank element is two dimension variable, so needing the scaling of x-axis and y-axis.Finally scaling Rear element copy renders on thumbnail object.
After digital white boards expands, in display screen, the content of display is only the part in digital white boards.
The present invention proposes the generating means of a kind of digital whiteboard thumbnail, with reference to Fig. 9, including:
Unit set up by element copy, for setting up the element copy of Contemporary Digital blank;
Dimension scale acquiring unit, for obtaining the dimension scale of thumbnail and Contemporary Digital blank;
Unit for scaling, is used for element copy a little carrying out relative to Contemporary Digital blank according to dimension scale Scaling;
Rendering unit, for rendering the element copy after scaling at thumbnail object.
In the present invention, first all blank element copies are reduced, required for this process relative to certain point Time depend on the calculating speed of CPU, the mainly calculating of numerical value is not related to rendering of pixel, so This calculating process only needs the shortest computer processing time, then renders scaling on thumbnail object After digital white boards element copy because thumbnail dimensions is typically the least, required for the pixel number that renders also Can become little accordingly, so rendering Background to have only to the shortest time.Therefore relative to the most universal Thumbnail generating algorithm, the inventive method needs the pixel number rendered to greatly reduce when generating thumbnail, So being greatly improved the formation efficiency of thumbnail, the method when needing the thumbnail generating big quantity simultaneously Effect become apparent from.
Wherein, dimension scale includes: the width ratio of thumbnail and Contemporary Digital blank, and thumbnail with The height ratio of Contemporary Digital blank.
Unit for scaling on the width of Contemporary Digital blank, according to width ratio by element copy relative to A little zooming in and out of Contemporary Digital blank;In the short transverse of Contemporary Digital blank, according to height ratio By element copy a little zooming in and out relative to Contemporary Digital blank.
During using digital white boards, needing more digital white boards space to carry out addition element, this just needs Will be updated the size of digital white boards, the generating means of the digital whiteboard thumbnail that the present invention proposes also is wrapped Include updating block;With reference to Figure 10,
Wherein, updating block, when digital white boards is not completely covered display screen, expands to the direction of display screen The size of digital white boards, is completely covered display screen;Then notice element copy is set up unit and is set up current number The element copy of word blank.
When specifically updating, updating block obtains the primary importance of digital white boards when starting to drag, and obtains knot The second position of digital white boards when bundle drags;The skew of digital white boards is obtained according to primary importance and the second position Amount;Expand the size of digital white boards according to side-play amount to display screen direction, display screen is completely covered.
Embodiment described above only have expressed the several embodiments of the present invention, and it describes more concrete and detailed, But therefore can not be interpreted as the restriction to the scope of the claims of the present invention.It should be pointed out that, for this area Those of ordinary skill for, without departing from the inventive concept of the premise, it is also possible to make some deformation and Improving, these broadly fall into protection scope of the present invention.Therefore, the protection domain of patent of the present invention should be with appended Claim is as the criterion.

Claims (10)

1. the generation method of a digital whiteboard thumbnail, it is characterised in that include step:
Set up the element copy of Contemporary Digital blank;
Obtain the dimension scale of thumbnail and described Contemporary Digital blank;
According to described dimension scale by described element copy a little contracting relative to described Contemporary Digital blank Put;
Element copy after scaling is rendered on thumbnail object.
The generation method of digital whiteboard thumbnail the most according to claim 1, it is characterised in that
Described dimension scale includes: described thumbnail and the width ratio of described Contemporary Digital blank, Yi Jisuo State the height ratio of thumbnail and described Contemporary Digital blank.
The generation method of digital whiteboard thumbnail the most according to claim 2, it is characterised in that
Described according to dimension scale by described element copy a little contracting relative to described Contemporary Digital blank The step put includes:
On the width of described Contemporary Digital blank, according to described width ratio by described element copy phase For a little zooming in and out of described Contemporary Digital blank;
In the short transverse of described Contemporary Digital blank, according to described height ratio by described element copy phase For a little zooming in and out of described Contemporary Digital blank.
The generation method of digital whiteboard thumbnail the most according to claim 1, it is characterised in that
Include before the step of the described element copy setting up Contemporary Digital blank:
When described digital white boards is not completely covered display screen, expand described number to the direction of described display screen The size of word blank, is completely covered described display screen.
The generation method of digital whiteboard thumbnail the most according to claim 4, it is characterised in that
The described size expanding described digital white boards to the direction of display screen, is completely covered described display screen Step includes:
Obtain the primary importance of digital white boards when starting to drag;
Obtain the second position of described digital white boards when terminating to drag;
The side-play amount of described digital white boards is obtained according to described primary importance and the described second position;
The size of described digital white boards is expanded to described display screen direction, by described display according to described side-play amount Screen is completely covered.
6. the generating means of a digital whiteboard thumbnail, it is characterised in that including:
Unit set up by element copy, for setting up the element copy of Contemporary Digital blank;
Dimension scale acquiring unit, for obtaining the dimension scale of thumbnail and described Contemporary Digital blank;
Unit for scaling, is used for white relative to described Contemporary Digital for described element copy according to described dimension scale A little zooming in and out of plate;
Rendering unit, for rendering the element copy after scaling at thumbnail object.
The generating means of digital whiteboard thumbnail the most according to claim 6, it is characterised in that
Described dimension scale includes: described thumbnail and the width ratio of described Contemporary Digital blank, Yi Jisuo State the height ratio of thumbnail and described Contemporary Digital blank.
The generating means of digital whiteboard thumbnail the most according to claim 7, it is characterised in that
Described unit for scaling is on the width of described Contemporary Digital blank, according to described width ratio by institute State element copy a little zooming in and out relative to described Contemporary Digital blank;At described Contemporary Digital blank In short transverse, according to described height ratio by described element copy relative to the one of described Contemporary Digital blank Point zooms in and out.
The generating means of digital whiteboard thumbnail the most according to claim 6, it is characterised in that described The generating means of digital whiteboard thumbnail also includes updating block;
Wherein, described updating block is not when described digital white boards is completely covered display screen, to described display The direction of screen expands the size of described digital white boards, is completely covered by described display screen;Then described unit is notified Element copy is set up unit and is set up the element copy of Contemporary Digital blank.
The generating means of digital whiteboard thumbnail the most according to claim 9, it is characterised in that
Described updating block obtains the primary importance of digital white boards when starting to drag, and when obtaining end dragging The second position of described digital white boards;Described numeral is obtained white according to described primary importance and the described second position The side-play amount of plate;Expand the size of described digital white boards to described display screen direction according to described side-play amount, will Described display screen is completely covered.
CN201210524246.XA 2012-12-07 2012-12-07 A kind of generation method and apparatus of digital whiteboard thumbnail Expired - Fee Related CN103049884B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210524246.XA CN103049884B (en) 2012-12-07 2012-12-07 A kind of generation method and apparatus of digital whiteboard thumbnail

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210524246.XA CN103049884B (en) 2012-12-07 2012-12-07 A kind of generation method and apparatus of digital whiteboard thumbnail

Publications (2)

Publication Number Publication Date
CN103049884A CN103049884A (en) 2013-04-17
CN103049884B true CN103049884B (en) 2016-08-24

Family

ID=48062514

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210524246.XA Expired - Fee Related CN103049884B (en) 2012-12-07 2012-12-07 A kind of generation method and apparatus of digital whiteboard thumbnail

Country Status (1)

Country Link
CN (1) CN103049884B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109389659B (en) * 2018-09-11 2023-08-25 广州视源电子科技股份有限公司 Rendering method and device of mathematical formula in PPT, storage medium and terminal equipment

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102591646A (en) * 2011-12-23 2012-07-18 广东威创视讯科技股份有限公司 Method for simultaneously scaling multiple WPF (Windows presentation foundation) windows and device
CN102752622A (en) * 2011-11-16 2012-10-24 新奥特(北京)视频技术有限公司 Three-dimensional display method of color spaces

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4102847B2 (en) * 2006-06-30 2008-06-18 シャープ株式会社 Image data providing apparatus, image display apparatus, image display system, image data providing apparatus control method, image display apparatus control method, control program, and recording medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102752622A (en) * 2011-11-16 2012-10-24 新奥特(北京)视频技术有限公司 Three-dimensional display method of color spaces
CN102591646A (en) * 2011-12-23 2012-07-18 广东威创视讯科技股份有限公司 Method for simultaneously scaling multiple WPF (Windows presentation foundation) windows and device

Also Published As

Publication number Publication date
CN103049884A (en) 2013-04-17

Similar Documents

Publication Publication Date Title
TWI443603B (en) Two dimensional vector graphics triangulation system and method thereof
CN103970518B (en) A kind of the 3D rendering method and device of window logic
JP6171643B2 (en) Gesture input device
US9285979B2 (en) Computer-implemented methods and systems for multi-touch duplication and swapping interactions
JP2015514246A5 (en)
CN107239216A (en) Drawing modification method and apparatus based on touch-screen
CN104035664A (en) Display method and device for user interface of application program
JP6630669B2 (en) Adjustment method and adjustment device for widget area
KR20150074145A (en) Method, apparatus and terminal device for controlling movement of application interface
JP2011108165A (en) Content creation aiding device, content creation aiding method, and scenario file creation method
CN102855132A (en) Method and system for selection of graphic objects
CN112215914A (en) System and method for interactive image caricature generation by an electronic device
JP5686735B2 (en) Display device, control method, and program
CN108197596A (en) A kind of gesture identification method and device
CN105578043A (en) Picture composition method and device for photographing of camera
CN110286827B (en) Element scaling control method, device, equipment and storage medium
CN103049884B (en) A kind of generation method and apparatus of digital whiteboard thumbnail
JP2011039801A (en) Apparatus and method for processing image
CN103984478A (en) Dynamic icon displaying method and system
CN106131533A (en) A kind of method for displaying image and terminal
CN111984151A (en) Whiteboard canvas size and position roaming control method for improving processing efficiency
JP5245444B2 (en) Information display device and program
CN102136153B (en) A kind of method and device of the picture processing for JICQ
TWI540537B (en) Method and device for image zoom out processing
CN102054280B (en) Method and device for rapidly generating vector diagram

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CP03 Change of name, title or address

Address after: 510670 Guangdong Province, Guangzhou high tech Industrial Development Zone Kezhu Road No. 233

Patentee after: VTRON GROUP Co.,Ltd.

Address before: 510663 Guangzhou province high tech Industrial Development Zone, Guangdong, Cai road, No. 6, No.

Patentee before: VTRON TECHNOLOGIES Ltd.

CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20160824

Termination date: 20211207

CF01 Termination of patent right due to non-payment of annual fee