CN102842142B - The display packing of dynamic picture and device in document - Google Patents

The display packing of dynamic picture and device in document Download PDF

Info

Publication number
CN102842142B
CN102842142B CN201110171309.3A CN201110171309A CN102842142B CN 102842142 B CN102842142 B CN 102842142B CN 201110171309 A CN201110171309 A CN 201110171309A CN 102842142 B CN102842142 B CN 102842142B
Authority
CN
China
Prior art keywords
picture
dynamic picture
document
described dynamic
viewing area
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.)
Active
Application number
CN201110171309.3A
Other languages
Chinese (zh)
Other versions
CN102842142A (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.)
Hanwang Technology Co Ltd
Original Assignee
Hanwang Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hanwang Technology Co Ltd filed Critical Hanwang Technology Co Ltd
Priority to CN201110171309.3A priority Critical patent/CN102842142B/en
Publication of CN102842142A publication Critical patent/CN102842142A/en
Application granted granted Critical
Publication of CN102842142B publication Critical patent/CN102842142B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Controls And Circuits For Display Device (AREA)

Abstract

The embodiment of the present invention provides display packing and the device of dynamic picture in a kind of document, relate to technical field of information display, comprise: when there is dynamic picture in the current display area of document, obtain the viewing area of described dynamic picture, in the viewing area of described dynamic picture, show each two field picture of described dynamic picture successively according to predetermined period.The embodiment of the present invention can show each two field picture of described dynamic picture successively according to predetermined period, thus the dynamic effect that realization Shows Picture in Word document, improve the experience that user checks dynamic picture in Word document.Be mainly used in Word document and show in the process of dynamic picture.

Description

The display packing of dynamic picture and device in document
Technical field
The present invention relates to technical field of information display, particularly relate to display packing and the device of dynamic picture in a kind of document.
Background technology
At present, in Word document, user can insert the picture (being also referred to as dynamic picture) that has dynamic effect, as GIF picture etc.But, adopt existing dynamic picture display packing, the first frame of this dynamic picture can only be shown, that is, the dynamic effect of this dynamic picture cannot be shown.
In prior art, if when common document reader wants the dynamic effect watching above-mentioned dynamic picture, the source document of dynamic picture can only be asked for the author of document, re-use suitable player (as IE browser, ACDSee software etc.) to go to play, operate more loaded down with trivial details, not only need by extra player, spend the more time, and in most cases cannot relate to the author of document, thus, the dynamic effect of this dynamic picture cannot be watched.
Summary of the invention
Embodiments of the invention provide display packing and the device of dynamic picture in a kind of document, achieve the dynamic effect of dynamic picture in display Word document, improve the experience that user checks dynamic picture in Word document.
For achieving the above object, embodiments of the invention adopt following technical scheme:
A display packing for dynamic picture in document, comprising:
When there is dynamic picture in the current display area of document, obtain the viewing area of described dynamic picture and each two field picture;
In the viewing area of described dynamic picture, show each two field picture of described dynamic picture successively according to predetermined period.
A kind of electronic document reading device, comprising:
Acquiring unit, during for there is dynamic picture in the current display area of document, obtains the size of the viewing area of described dynamic picture and position and each two field picture;
Display unit, in the viewing area of described dynamic picture, shows each two field picture of described dynamic picture successively according to predetermined period.
In the embodiment of the present invention described by technique scheme, if there is dynamic picture in the current display area of document, by obtaining the viewing area of described dynamic picture, and in the viewing area of described dynamic picture, show each two field picture of described dynamic picture successively according to predetermined period.Compared with cannot showing the dynamic effect of this dynamic picture in prior art, the embodiment of the present invention can show each two field picture of described dynamic picture successively according to predetermined period, thus achieve the dynamic effect of dynamic picture in display Word document, improve the experience that user checks dynamic picture in Word document.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
The process flow diagram of the display packing of dynamic picture in a kind of document that Fig. 1 provides for the embodiment of the present invention 1;
The process flow diagram of the display packing of dynamic picture in the another kind of document that Fig. 2 provides for the embodiment of the present invention 1;
The process flow diagram of the display packing of dynamic picture in another document that Fig. 3 provides for the embodiment of the present invention 1;
The structural drawing of a kind of electronic document reading device that Fig. 4 provides for the embodiment of the present invention 2;
A kind of structural drawing of display unit in the electronic document reading device that Fig. 5 provides for the embodiment of the present invention 2;
The structural drawing of the another kind of electronic document reading device that Fig. 6 provides for the embodiment of the present invention 2.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
Embodiment 1:
The embodiment of the present invention provides the display packing of dynamic picture in a kind of document, and as shown in Figure 1, the method comprises:
When 101, there is dynamic picture in the current display area of document, obtain the viewing area of described dynamic picture and each two field picture.
The viewing area of described dynamic picture is determined by the size of described dynamic picture and display position, and the size of described dynamic picture is determined by the height of this dynamic picture and width.Such as, Word document is read and typesetting time, if detect in the current display area of document to there is dynamic picture, then obtain size and the position of the viewing area of described dynamic picture.The position of the viewing area of dynamic picture is determined according to display device and dynamic picture position in a document.
First, format analysis is carried out to document, obtain each two field picture of dynamic picture size in the paragraph of the document and text message and/or the document and this dynamic picture.The document of the Docx form generated for Word2007, by being inserted in word document by the dynamic GIF picture of a width, can form the word document that a section is embedded with dynamic picture.When carrying out format analysis to word document, first decompress document files, again by all XML nodes of traversal main document (word document.xml), find the node of paragraph, word, form (and cell), and picture node w:drawing.Resolve the node of paragraph, word and form, obtain the form of the content of word and paragraph, word, form; Resolve picture node w:drawing, resolve the content of this node, obtain size and the unique ID of picture in the document of picture, the size of described picture comprises height and the width of picture.Resolve the relation index file corresponding with main document (word _ rels document.xml.rels), obtain the GIF picture name that this ID is corresponding, according to picture name, from the destination file that document files decompresses, navigate to corresponding dynamic picture, GIF image data is read in internal memory.This GIF image data of following parsing, obtains the height of dynamic picture and width, the color table of each two field picture and pixel data, and draws out each two field picture of this dynamic picture, and temporary in internal memory, when showing for subsequent step.Each two field picture of described dynamic picture is store with the form of pixel in internal memory.Such as: when resolve in word document to dynamic picture comprise 10 two field pictures, when the resolution of each two field picture is 80 × 60, create an array picturebuffer [10] [4800] in internal memory, each element in picturebuffer [] [] stores the pixel information in respective image frame.Picture frame sequence number, prefixed time interval, the display mode of current display is also preserved in internal memory.The picture frame sequence number of current display is initialized as 1, i.e. the first two field picture; Prefixed time interval is the residence time of the every two field picture obtained according to motion picture files format analysis, if do not provide the residence time of every two field picture in motion picture files form, then can set according to the needs of user, as being preset as 50ms; Display mode comprise single display and Circulating fibrocytes according to user need set.
Described dynamic picture can also be video image.When described dynamic picture is video image, go out each two field picture of described video image according to the format analysis of video image, and parse the residence time of each two field picture of video image.
Usually, the viewing area of described dynamic picture is rectangle, and the size of the viewing area of described dynamic picture is identical with the size of described dynamic picture, or the size of the viewing area of described dynamic picture is slightly larger than the size of described dynamic picture.The size of described dynamic picture is determined by the height of described dynamic picture and width.
Secondly, according to the size of the width of current display area and the dynamic picture of height and layout information and acquisition, typesetting is carried out to the paragraph obtained and text and/or dynamic picture, obtain the display position of this dynamic picture, wherein,
Layout information comprises line height, line space, character duration, the display position of this dynamic picture comprise this dynamic picture be expert at and be positioned at be expert at initial horizontal ordinate.Concrete process of typeset is as follows:
1. for paragraph, according to the indentation value of paragraph, alignment thereof and line-spacing, also according to the reading direction of word (from left to right or from right to left), consider the attributes such as the font of word, font size simultaneously, within the width restriction of the page, to arrange in the first row as much as possible word, then residue word is arranged in the second row and below in more row, until all words of this paragraph have all been arranged.
If comprise the dynamic picture of embedding in the word of 2. paragraph, according to this dynamic picture height and width, and position in the row at this dynamic picture place, as the position after which character is determined the position of this dynamic picture.During concrete enforcement, regard each two field picture of this dynamic picture as a special character, the height of this special character is the height H of this dynamic picture, and the width of this special character is the width W of this dynamic picture.In process of typeset, when this dynamic picture is after M text character of N-th row, the special character that namely this dynamic picture is corresponding is M+1 character, supposes that start of line coordinate is (x 0, y 0), character duration is t, and territory, space of a whole page effective display area is long is l, and line height is h, line space is s, then when the width of the text character of M before N-th row adds that this dynamic width is less than the width of display page, namely during M × t+W<l, the word of this dynamic picture and front and back is arranged in a line, i.e. N-th row M+1 character position, otherwise this dynamic picture is arranged in next line, and namely N+1 is capable.When this dynamic picture is arranged in N-th row (and with it before and after word when being arranged in same a line), the lower limb of this dynamic picture is set to consistent with the baseline of word before and after this dynamic picture, and initial abscissa positions is position (the i.e. x of M+1 text character 0+ M × t), now, if the height of this dynamic picture is greater than the height of text character, the height that this dynamic picture is expert at is the height of dynamic picture; When this dynamic picture be arranged in N+1 capable time, this dynamic picture is positioned at the capable first character position of N+1, and the upper left corner ordinate of this dynamic picture is initial ordinate (the i.e. y that N+1 is capable 0+ h+s), the upper left corner horizontal ordinate of this dynamic picture is determined according to layout information (left-justify, placed in the middle, Right Aligns) and the width of this dynamic picture.If layout information is left-justify, the upper left corner horizontal ordinate of this dynamic picture is the initial horizontal ordinate x of the first character that N+1 is capable 0; If layout information is Right Aligns, the upper left corner horizontal ordinate of this dynamic picture is the width x that the end horizontal ordinate of last character that N+1 is capable deducts this dynamic picture 0+ l-W.The position of picture can be determined after this process terminates.
3. for form, according to the width of the height of the line number of form, columns, every a line, each row, the height of special element lattice and the form of width, cell span situation and Form Frame Line, first draw out the framework of form, then parse paragraph in each cell and word content and corresponding form, in the scope of each cell, carry out typesetting according to and at the 1st at the 2nd.
102, in the viewing area of described dynamic picture, each two field picture of described dynamic picture is shown successively according to prefixed time interval.
In the embodiment of the present invention, if there is dynamic picture in the current display area of document, by obtaining size and the position of the viewing area of described dynamic picture; And in the viewing area of described dynamic picture, show each two field picture of described dynamic picture successively according to prefixed time interval.Compared with cannot showing the dynamic effect of this dynamic picture in prior art, the embodiment of the present invention can show each two field picture of described dynamic picture successively according to predetermined period, thus the dynamic effect that realization Shows Picture in Word document, improve the experience that user checks dynamic picture in Word document.
Further, when showing Word document, as shown in Figure 2, said method also comprises:
103, in the current display area of described document, show all static contents in described document.
Such as, described static content is the word in described Word document, punctuation mark, static images etc.
It should be noted that step 102 and step 103 can be carried out simultaneously, also can be that step 103 performed before step 102.
Further, when showing Word document, as shown in Figure 2, in above-mentioned steps 102 in the viewing area of described dynamic picture, each two field picture showing described dynamic picture according to prefixed time interval successively specifically can adopt following sub-step to realize:
1021, the first two field picture that described dynamic picture is to be shown is determined.
From internal memory, read the picture frame sequence number of current display, be defined as the first two field picture that described dynamic picture is to be shown.Described dynamic picture the first two field picture to be shown can be the first two field picture of described dynamic picture, if picture frame sequence number is the picture frame of 1; Also can be the last frame image shown before current display area is shifted out in the viewing area of described dynamic picture.If described dynamic picture the first two field picture to be shown is the last frame image shown before current display area is shifted out in the viewing area of described dynamic picture, when showing each two field picture of described dynamic picture, need the picture frame sequence number of the current display of preserving in real-time update internal memory.As when showing the 5th two field picture of dynamic picture, the picture frame sequence number of the current display of preserving in internal memory is 5, if now user clicks page turning key, current display area is shifted out in the viewing area of described dynamic picture, when the viewing area of described dynamic picture moves into current display area again, described dynamic picture the first two field picture to be shown is exactly the picture frame that sequence number is 5.
1022, in the viewing area of described dynamic picture, from the first two field picture that described dynamic picture is to be shown, follow-up each two field picture of described dynamic picture is shown successively according to prefixed time interval.
Such as, described dynamic picture comprises 10 two field pictures, first two field picture to be shown is first two field picture (sequence number is the picture frame of 1) of described dynamic picture, prefixed time interval is 50ms, in the viewing area of described dynamic picture, show the first two field picture of described dynamic picture, after having shown the first two field picture, every 50ms, show the second two field picture of described dynamic picture, by that analogy, show next frame image successively every 50ms, until follow-up each two field picture of described dynamic picture has all shown, as the 10th two field picture has shown.
When display mode is single display, the picture frame that can also set last display is the first two field picture or the last frame image of described dynamic picture, if the picture frame of the last display of setting is the first two field picture of described dynamic picture, then after the follow-up each two field picture having shown described dynamic picture according to prefixed time interval successively, also to show the first two field picture of described dynamic picture again, and stop all the other each two field pictures of display, what described current display area was finally presented is last picture frame of described dynamic picture.
When display mode is Circulating fibrocytes, in the viewing area of described dynamic picture, from the first two field picture that described dynamic picture is to be shown, show follow-up each two field picture of described dynamic picture successively according to prefixed time interval after, circulation, from the first two field picture of described dynamic picture, shows each two field picture of described dynamic picture successively according to prefixed time interval.
Such as, described dynamic picture comprises 10 two field pictures, first two field picture to be shown is first two field picture (sequence number is the picture frame of 1) of described dynamic picture, prefixed time interval is 50ms, in the viewing area of described dynamic picture, show the first two field picture of described dynamic picture, after having shown the first two field picture, every 50ms, show the second two field picture of described dynamic picture, by that analogy, show next frame image successively every 50ms, until follow-up each two field picture of described dynamic picture has all shown, as the 10th two field picture has shown.Afterwards, from the first two field picture of described dynamic picture, repeat each two field picture of dynamic picture as described in showing successively according to the time interval (as 50ms) of presetting.
Which kind of display mode the present invention adopts to concrete, and this is not restricted.
Further, considering that user is when checking described document, rolling operation can be carried out to document, in order to when user carries out rolling operation to document, ensure the display that the dynamic effect of described dynamic picture still can be correct, as shown in Figure 3, the method also comprises:
104, when the viewing area of described dynamic picture moves into the current display area of described document, in the viewing area of described dynamic picture, each two field picture of described dynamic picture is shown successively according to prefixed time interval.
Such as, all the elements of the first page of Word document A are static content, and the second page of Word document A exists described dynamic picture, and namely the viewing area of described dynamic picture is at the second page of this word document A.Time initial, the first page of the document A is in the current display area of described document; When page turning message being detected, as Word document A is rolled to second page from first page by user, the content of the second page of described document is in the current display area of described document; Now, the viewing area of described dynamic picture, by moving into the current display area of described document, so in the viewing area of described dynamic picture, shows each two field picture of described dynamic picture successively according to predetermined period.Showing each two field picture of described dynamic picture according to the cycle of presetting, can realize by arranging a software timer, after receiving the full message of software timer timing, just refresh image in the viewing area of the described dynamic picture of display at every turn.About the technology that the use of software timer is known to the skilled person, the present invention does not repeat them here.
105, when the current display area of described document is shifted out in the viewing area of described dynamic picture, each two field picture showing described dynamic picture is stopped in the viewing area of described dynamic picture.
Such as, the second page of Word document A there is described dynamic picture, namely the viewing area of described dynamic picture is at the second page of this word document A.Time initial, this second page, in the current display area of described document, namely has the viewing area of described dynamic picture in current display area; When Word document A is rolled to the 3rd page from second page by user, the 3rd page in the current display area of described document; That is: the current display area of described document is shifted out in the viewing area of the dynamic picture on the second page of described Word document A, so stops in the viewing area of described dynamic picture each two field picture showing described dynamic picture.Realize refreshing image in the viewing area of described dynamic picture according to predetermined period according to software timer, then can move and stop software timer timing to realize stopping image in the viewing area of the described dynamic picture of display.
If when the viewing area of 106 described dynamic pictures is moved with document in the current display area of described document, obtain mobile after the position of viewing area of described dynamic picture, and in the viewing area of dynamic picture after described movement, continue each two field picture of the described dynamic picture of display.
Such as, there is described dynamic picture in the second page of Word document A, namely has the viewing area of described dynamic picture in current display area.Time initial, this second page, in the current display area of described document, namely has the viewing area of described dynamic picture in current display area.When user carries out line scrolling to the second page of Word document A, when the current display area of the described document that do not rolled out by described second page, now the viewing area of described dynamic picture changes with the change of the content in current display area of described Word document A.Resolution as current display area is 640 × 480, and current display area comprises 17 styles of writing basis and 1 dynamic picture, viewing area fifth line in current display area of dynamic picture.When the displaying contents in region changes, when turning over forward row message as detected, the position of viewing area in the current display area of described document of described dynamic picture changes, move down a line accordingly, viewing area the 6th row in current display area of dynamic picture, obtain the position of the viewing area of the dynamic picture after described movement, and continue each two field picture of the described dynamic picture of display in the viewing area of dynamic picture after described movement.
Embodiment 2:
The embodiment of the present invention provides a kind of electronic document reading device, as shown in Figure 4, comprising: acquiring unit 11 and display unit 12.
Wherein, acquiring unit 11, during for there is dynamic picture in the current display area of document, obtains the viewing area of described dynamic picture and each two field picture;
Display unit 12, in the viewing area of described dynamic picture, shows each two field picture of described dynamic picture successively according to predetermined period.
Wherein, acquiring unit 11 comprises further:
Format analysis module, for carrying out format analysis to document, obtains each two field picture of dynamic picture size in the middle of the paragraph of the document and text message and/or this article and this dynamic picture;
Type-setting module, the size for the dynamic picture according to the width of current display area and height and layout information and acquisition carries out typesetting to the paragraph obtained and text and/or dynamic picture, obtains the display position of this dynamic picture, wherein,
Layout information comprises line height, line space, character duration, the display position of this dynamic picture comprise this dynamic picture be expert at and be positioned at be expert at initial horizontal ordinate.
In the embodiment of the present invention, if there is dynamic picture in the current display area of document, by obtaining the viewing area of described dynamic picture, and in the viewing area of described dynamic picture, show each two field picture of described dynamic picture successively according to predetermined period.Compared with cannot showing the dynamic effect of this dynamic picture in prior art, the embodiment of the present invention can show each two field picture of described dynamic picture successively according to predetermined period, thus realize the dynamic effect of dynamic picture in display Word document, improve the experience that user checks dynamic picture in Word document.
Described display unit 12 also for showing all static contents in described document in the current display area of described document.
As shown in Figure 5, described display unit 12 comprises: determination module 121 and display module 122.
Determination module 121, for determining the first two field picture that described dynamic picture is to be shown;
Display module 122, in the viewing area of described dynamic picture, from the first two field picture that described dynamic picture is to be shown, shows follow-up each two field picture of described dynamic picture successively according to prefixed time interval.
Described display module 122 also for show described dynamic picture successively according to prefixed time interval follow-up each two field picture after, circulate from the first two field picture of described dynamic picture, show each two field picture of described dynamic picture according to prefixed time interval successively.
The specific implementation of above-mentioned display unit can see the associated description of step 102 in above-described embodiment 1.
In order to when user carries out rolling operation to document, ensure the display that the dynamic effect of described dynamic picture still can be correct, as shown in Figure 6, described device also comprises with lower unit: the first processing unit 14, second processing unit 15, the 3rd processing unit 16.
First processing unit 14, for when the viewing area of described dynamic picture moves into the current display area of described document, in the viewing area of described dynamic picture, shows each two field picture of described dynamic picture successively according to predetermined period;
Second processing unit 15, for when the current display area of described document is shifted out in the viewing area of described dynamic picture, stops in the viewing area of described dynamic picture each two field picture showing described dynamic picture;
3rd processing unit 16, if when the viewing area for described dynamic picture is moved with document in the current display area of described document, obtain mobile after the position of viewing area of described dynamic picture, and in the viewing area of dynamic picture after described movement, continue each two field picture of the described dynamic picture of display.
The embodiment of the present invention is mainly used in Word document and shows in the process of dynamic picture.
The above; be only the specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, is anyly familiar with those skilled in the art in the technical scope that the present invention discloses; change can be expected easily or replace, all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection domain of described claim.

Claims (10)

1. the display packing of dynamic picture in Word document, is characterized in that, comprising:
Step 1, when there is dynamic picture in the current display area of Word document, obtain the viewing area of described dynamic picture and each two field picture, described step 1 is specially:
First, Word document is read and typesetting, if detect in the current display area of document to there is dynamic picture, then obtain size and the position of the viewing area of described dynamic picture, the position of the viewing area of dynamic picture is determined according to display device and dynamic picture position in a document; The size of the viewing area of the described dynamic picture of described acquisition comprises: carry out format analysis to Word document, obtain each two field picture of dynamic picture size in the paragraph of the document and text message and/or the document and this dynamic picture, first decompress document files, again by all XML nodes of traversal main document, find the node of paragraph, word, form, form comprises cell, and picture node w:drawing, resolve the node of paragraph, word and form, obtain the form of the content of word and paragraph, word, form; Resolve picture node w:drawing, resolve the content of this node, obtain size and the unique ID of picture in the document of picture, the size of described picture comprises height and the width of picture;
Resolve the relation index file corresponding with main document, obtain the GIF picture name that this ID is corresponding, according to picture name, from the destination file that document files decompresses, navigate to corresponding dynamic picture, GIF image data is read in internal memory; Resolve this GIF image data, obtain the height of dynamic picture and width, the color table of each two field picture and pixel data, and draw out each two field picture of this dynamic picture, and temporary in internal memory, each two field picture of described dynamic picture is store with the form of pixel in internal memory;
Secondly, according to the size of the width of current display area and the dynamic picture of height and layout information and acquisition typesetting is carried out to the paragraph obtained and text and/or dynamic picture, obtain the display position of this dynamic picture;
Step 2, in the viewing area of described dynamic picture, show each two field picture of described dynamic picture successively according to prefixed time interval.
2. the display packing of dynamic picture in Word document according to claim 1, is characterized in that, also comprise: in the current display area of described document, show all static contents in described document.
3. the display packing of dynamic picture in Word document according to claim 1, it is characterized in that, described layout information comprises line height, line space, character duration, the display position of this dynamic picture comprise this dynamic picture be expert at and be positioned at be expert at character position.
4. the display packing of dynamic picture in Word document according to claim 3, it is characterized in that, described in the viewing area of described dynamic picture, each two field picture showing described dynamic picture according to prefixed time interval successively comprises:
In the viewing area of described dynamic picture, from the first two field picture of described dynamic picture, show each two field picture of described dynamic picture successively according to prefixed time interval;
Or in the viewing area of described dynamic picture, from the first two field picture of described dynamic picture, show each two field picture of described dynamic picture according to prefixed time interval successively, after the last frame image of described dynamic picture has shown, show the first two field picture of described dynamic picture;
Or in the viewing area of described dynamic picture, from the first two field picture of described dynamic picture, circulate and show each two field picture of described dynamic picture according to prefixed time interval successively.
5. in the Word document according to any one of claim 1-4, the display packing of dynamic picture, is characterized in that, also comprises:
When the viewing area of described dynamic picture moves into the current display area of described document, in the viewing area of described dynamic picture, show each two field picture of described dynamic picture successively according to predetermined period;
When the current display area of described document is shifted out in the viewing area of described dynamic picture, stop in the viewing area of described dynamic picture each two field picture showing described dynamic picture;
If when the viewing area of described dynamic picture is moved with document in the current display area of described document, obtain mobile after the viewing area of described dynamic picture, and in the viewing area of dynamic picture after described movement, continue each two field picture of the described dynamic picture of display.
6. a Word electronic document reading device, is characterized in that, comprising:
Acquiring unit, during for there is dynamic picture in the current display area of document, obtains the viewing area of described dynamic picture and each two field picture; Described acquiring unit comprises:
Format analysis module, for reading and typesetting Word document, if detect in the current display area of document to there is dynamic picture, then obtain size and the position of the viewing area of described dynamic picture, the position of the viewing area of dynamic picture is determined according to display device and dynamic picture position in a document; The size of the viewing area of the described dynamic picture of described acquisition comprises: carry out format analysis to Word document, obtain each two field picture of dynamic picture size in the paragraph of the document and text message and/or the document and this dynamic picture, first decompress document files, again by all XML nodes of traversal main document, find the node of paragraph, word, form, form comprises cell, and picture node w:drawing, resolve the node of paragraph, word and form, obtain the form of the content of word and paragraph, word, form; Resolve picture node w:drawing, resolve the content of this node, obtain size and the unique ID of picture in the document of picture, the size of described picture comprises height and the width of picture;
Resolve the relation index file corresponding with main document, obtain the GIF picture name that this ID is corresponding, according to picture name, from the destination file that document files decompresses, navigate to corresponding dynamic picture, GIF image data is read in internal memory; Resolve this GIF image data, obtain the height of dynamic picture and width, the color table of each two field picture and pixel data, and draw out each two field picture of this dynamic picture, and temporary in internal memory, each two field picture of described dynamic picture is store with the form of pixel in internal memory;
Described acquiring unit also comprises:
Type-setting module, for carrying out typesetting according to the width of current display area and height and layout information to the paragraph obtained and text and/or dynamic picture, obtains the display position of this dynamic picture;
Display unit, in the viewing area of described dynamic picture, shows each two field picture of described dynamic picture successively according to prefixed time interval.
7. Word electronic document reading device according to claim 6, is characterized in that, described display unit also for showing all static contents in described document in the current display area of described document.
8. Word electronic document reading device according to claim 6, it is characterized in that, described layout information comprises line height, line space, character duration, the display position of this dynamic picture comprise this dynamic picture be expert at and be positioned at be expert at character position.
9. Word electronic document reading device according to claim 8, it is characterized in that, described display unit comprises:
First display module, for in the viewing area of described dynamic picture, from the first two field picture of described dynamic picture, each two field picture of described dynamic picture is shown successively according to prefixed time interval, after the last frame image of described dynamic picture has shown, show the first two field picture of described dynamic picture;
And/or second display module, in the viewing area of described dynamic picture, from the first two field picture of described dynamic picture, circulate and show each two field picture of described dynamic picture according to prefixed time interval successively.
10. the Word electronic document reading device according to any one of claim 6-9, is characterized in that, also comprise:
First processing unit, for when the viewing area of described dynamic picture moves into the current display area of described document, in the viewing area of described dynamic picture, shows each two field picture of described dynamic picture successively according to predetermined period;
Second processing unit, for when the current display area of described document is shifted out in the viewing area of described dynamic picture, stops in the viewing area of described dynamic picture each two field picture showing described dynamic picture;
3rd processing unit, if when the viewing area for described dynamic picture is moved with document in the current display area of described document, obtain mobile after the position of viewing area of described dynamic picture, and in the viewing area of dynamic picture after described movement, continue each two field picture of the described dynamic picture of display.
CN201110171309.3A 2011-06-23 2011-06-23 The display packing of dynamic picture and device in document Active CN102842142B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110171309.3A CN102842142B (en) 2011-06-23 2011-06-23 The display packing of dynamic picture and device in document

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110171309.3A CN102842142B (en) 2011-06-23 2011-06-23 The display packing of dynamic picture and device in document

Publications (2)

Publication Number Publication Date
CN102842142A CN102842142A (en) 2012-12-26
CN102842142B true CN102842142B (en) 2015-11-25

Family

ID=47369461

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110171309.3A Active CN102842142B (en) 2011-06-23 2011-06-23 The display packing of dynamic picture and device in document

Country Status (1)

Country Link
CN (1) CN102842142B (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104391886B (en) * 2014-11-07 2018-10-23 武汉大学 A kind of e-book sending method and device
CN106257415A (en) 2015-06-19 2016-12-28 阿里巴巴集团控股有限公司 Realize the method and apparatus of dynamic picture preview, expression bag methods of exhibiting and device
CN105138695A (en) * 2015-09-21 2015-12-09 合一网络技术(北京)有限公司 Method and device for graphics interchange format (GIF) recording
CN105825536A (en) * 2016-03-30 2016-08-03 天脉聚源(北京)科技有限公司 Method and device for displaying layout of layers
CN106303722B (en) * 2016-08-04 2019-12-10 腾讯科技(深圳)有限公司 animation playing method and device
CN106383880B (en) * 2016-09-13 2020-01-24 广州视睿电子科技有限公司 GIF file playing method and system
CN106789556B (en) * 2016-11-28 2021-03-19 腾讯科技(深圳)有限公司 Expression generation method and device
CN110377853A (en) * 2019-07-04 2019-10-25 北京奇艺世纪科技有限公司 Cardon playback method, equipment and storage medium
CN110706321B (en) * 2019-09-30 2024-02-09 北京金山安全软件有限公司 Dynamic image processing method and device and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6571054B1 (en) * 1997-11-10 2003-05-27 Nippon Telegraph And Telephone Corporation Method for creating and utilizing electronic image book and recording medium having recorded therein a program for implementing the method
CN1811788A (en) * 2006-02-24 2006-08-02 无锡永中科技有限公司 Method for generating dynamic watermark in electronic documents
CN101118649A (en) * 2007-09-24 2008-02-06 腾讯科技(深圳)有限公司 Photograph processing method and processing system
CN101923723A (en) * 2009-06-16 2010-12-22 汉王科技股份有限公司 Method for realizing display of electronic document

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6571054B1 (en) * 1997-11-10 2003-05-27 Nippon Telegraph And Telephone Corporation Method for creating and utilizing electronic image book and recording medium having recorded therein a program for implementing the method
CN1811788A (en) * 2006-02-24 2006-08-02 无锡永中科技有限公司 Method for generating dynamic watermark in electronic documents
CN101118649A (en) * 2007-09-24 2008-02-06 腾讯科技(深圳)有限公司 Photograph processing method and processing system
CN101923723A (en) * 2009-06-16 2010-12-22 汉王科技股份有限公司 Method for realizing display of electronic document

Also Published As

Publication number Publication date
CN102842142A (en) 2012-12-26

Similar Documents

Publication Publication Date Title
CN102842142B (en) The display packing of dynamic picture and device in document
US11494071B2 (en) Method for displaying handwritten input content, electronic device and computer storage medium
CN105740364B (en) Page processing method and related device
CN107172474B (en) Method and device for drawing bullet screen by using canvas
US8515176B1 (en) Identification of text-block frames
CN101246550B (en) Image character recognition method and device
CN105307030A (en) Barrage displaying method and device
CN104063198A (en) Multi-screen synchronous subtitle overlaying method and equipment
CN105279251A (en) Virtual gift display method and device
CN103761315A (en) Method and system for displaying webpage content
CN104050185A (en) Zoom-display processing method and device for page contents
CN112835499A (en) Carousel graph display method, device, equipment and medium
US20170344247A1 (en) Touch screen device enabling entity to be shifted or copied based on touch input, and operating method thereof
CN104239282B (en) The treating method and apparatus of e-book
CN105786308A (en) Character string display method and apparatus
US9734132B1 (en) Alignment and reflow of displayed character images
CN101573684B (en) Method for visualizing a change caused by scrolling in a scrolling direction of a section of a text and/or graphic displayed on an optical display means
US20100020086A1 (en) Sharing display processing system, display processing system, and display method
CN101650926B (en) Local display picture magnification method and electronic device using same
CN106874387B (en) Method for displaying real-time information in self-adaptive HTML (Hypertext markup language) scrolling mode
CN103092989A (en) Image display method and device adaptable to terminal screen
CN111477183B (en) Reader refresh method, computing device, and computer storage medium
CN111783007B (en) Display rendering method and device, electronic equipment and storage medium
CN103491416A (en) Single-layer displaying method and device of subtitle data
CN111399788B (en) Media file playing method and media file playing device

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