WO2018176653A1 - 电子书页面显示方法、装置和终端设备 - Google Patents

电子书页面显示方法、装置和终端设备 Download PDF

Info

Publication number
WO2018176653A1
WO2018176653A1 PCT/CN2017/089262 CN2017089262W WO2018176653A1 WO 2018176653 A1 WO2018176653 A1 WO 2018176653A1 CN 2017089262 W CN2017089262 W CN 2017089262W WO 2018176653 A1 WO2018176653 A1 WO 2018176653A1
Authority
WO
WIPO (PCT)
Prior art keywords
page
book
area
color
currently displayed
Prior art date
Application number
PCT/CN2017/089262
Other languages
English (en)
French (fr)
Inventor
陈新港
Original Assignee
掌阅科技股份有限公司
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 掌阅科技股份有限公司 filed Critical 掌阅科技股份有限公司
Priority to US16/498,346 priority Critical patent/US11054969B2/en
Publication of WO2018176653A1 publication Critical patent/WO2018176653A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/0483Interaction with page-structured environments, e.g. book metaphor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F15/00Digital computers in general; Data processing equipment in general
    • G06F15/02Digital computers in general; Data processing equipment in general manually operated with input through keyboard and computation using a built-in program, e.g. pocket calculators
    • G06F15/025Digital computers in general; Data processing equipment in general manually operated with input through keyboard and computation using a built-in program, e.g. pocket calculators adapted to a specific application
    • G06F15/0291Digital computers in general; Data processing equipment in general manually operated with input through keyboard and computation using a built-in program, e.g. pocket calculators adapted to a specific application for reading, e.g. e-books
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/103Formatting, i.e. changing of presentation of documents
    • G06F40/106Display of layout of documents; Previewing

Definitions

  • the present application relates to the field of data processing technologies, and in particular, to a method, an apparatus, and a terminal device for displaying an e-book page.
  • An e-book is a publication that digitizes information such as text, pictures, sounds, and images using computer technology.
  • traditional paper reading methods have gradually been replaced by e-books.
  • People are increasingly using Internet and computer technology to download e-books through reading applications for reading e-books. .
  • the e-book page displays the corresponding page turning effect along with the user's sliding operation.
  • part of the content is displayed as the content of the current page (the page that has been read), and a part is displayed as the next page ( The content of the page to be read, and the other part is displayed as the folded portion of the current page (ie, the portion of the current page that was folded, which is part of the back of the current page) to form a complete page turning effect.
  • the folded portion of the current page during page turning is usually only displayed as a fixed color, such as white or as a set paper color.
  • This simple color display method makes the page color in the page turning process not match well, which affects the page display effect of the e-book.
  • the embodiment of the present application provides a method, a device, and a terminal device for displaying an e-book page, so as to solve the problem that the page color cannot be well matched and affect the page display effect of the e-book during the current page flipping process. .
  • a method for displaying an e-book page includes: determining to obtain an edge paper color and a page content of the e-book image page after receiving a page turning operation on the currently displayed e-book image page, wherein The edge paper color is used to indicate a color of a paper within a set distance from an edge of the e-book image page; and the e-book operated by the page turning operation is drawn and displayed using the edge paper color and the page content The folded portion of the image page.
  • the e-book reading application device is For example, after receiving the page turning operation, the mobile terminal, the desktop computer, etc., first obtain the paper color of the page edge of the currently displayed e-book image page and the page content, and then display the display during the page turning operation.
  • the folded portion of the e-book image page is For example, after receiving the page turning operation, the mobile terminal, the desktop computer, etc., first obtain the paper color of the page edge of the currently displayed e-book image page and the page content, and then display the display during the page turning operation. The folded portion of the e-book image page.
  • the edge paper color is a part of the color of the e-book image page, and the matching with the e-book image page is higher, and the color matching is also more.
  • the display effect of the e-book image page is effectively improved, and the user's reading experience is improved; on the other hand, compared with the traditional page color analysis, the color data of the entire page needs to be collected and analyzed, and the edge paper color can effectively reflect
  • the current e-book image page situation also greatly reduces the amount of data processing for color data collection and analysis, and improves e-book drawing and display. Efficiency also further enhances the user's reading experience.
  • FIG. 1 is a flow chart showing the steps of a method for displaying an e-book page according to Embodiment 1 of the present application;
  • FIG. 2 is a schematic diagram of area division of an e-book page displayed during page turning according to an embodiment of the present application
  • FIG. 3 is a flow chart showing the steps of a method for displaying an e-book page according to Embodiment 2 of the present application;
  • FIG. 4 is a schematic diagram of a cylindrical model used in the process of drawing a page turning effect according to an embodiment of the present application
  • FIG. 5 is a flow chart showing the steps of a method for displaying an e-book page according to Embodiment 3 of the present application;
  • FIG. 6 is a flow chart showing the steps of a method for displaying an e-book page according to Embodiment 4 of the present application;
  • FIG. 7 is a structural block diagram of an e-book page display apparatus according to Embodiment 5 of the present application.
  • FIG. 8 is a structural block diagram of an e-book page display device according to Embodiment 6 of the present application.
  • FIG. 9 is a schematic structural diagram of a terminal device according to Embodiment 7 of the present application.
  • FIG. 10 is a structural block diagram of an e-book page display apparatus according to Embodiment 8 of the present application.
  • FIG. 11 is a block diagram showing the structure of an e-book page display device according to Embodiment 9 of the present application.
  • FIG. 12 is a schematic structural diagram of a terminal device according to Embodiment 10 of the present application.
  • FIG. 1 a flow chart of steps of a method for displaying an e-book page according to a first embodiment of the present application is shown.
  • Step S102 After determining that the page turning operation on the currently displayed e-book image page is received, the edge paper color and the page content of the e-book image page are acquired.
  • the e-book image page means that the content of the e-book page includes an image, and the image has a portion overlapping with the boundary region of the e-book page.
  • the border area of the e-book page may be set as an area for performing color picking of the edge paper, such as an area within a set distance from the edge of the e-book image page.
  • the edge paper color is used to indicate the color of the paper within the set distance from the edge of the e-book image page.
  • the set distance can be appropriately set by a person skilled in the art according to actual needs, and the color can be selected in the edge area of the e-book image page, for example, set to four pixels or one millimeter of the four page boundaries of the e-book image page. The distance and so on.
  • the edge paper color can effectively reflect the color structure of the current e-book image page.
  • an e-book cover or a page with an illustration set in one or several border areas of an e-book page may have multiple colors in the edge paper color.
  • the edge paper color may also include multiple colors. Extracting the color of these edge papers and combining them with the page content (such as images and/or text) of the e-book image page as the basis for drawing the folded portion of the e-book image page displayed during the page turning process, The processing efficiency of the color data is also higher because of the higher matching degree with the currently displayed e-book image page. Coordination effectively improves the display of e-book pages, especially e-book image pages.
  • the obtaining of the page content of the currently displayed e-book image page can be implemented by any person skilled in the art according to actual conditions, such as obtaining information of the drawn page content when the e-book page is drawn, or determining the e-book page.
  • the present invention does not limit the drawing of the area, and the content of the drawing is obtained from the area.
  • the implementation manner of determining that the page turning operation of the currently displayed e-book page is received may also be appropriately set by a person skilled in the art according to actual conditions, for example, detecting that the user operates the currently displayed e-book page through the touch screen. If the operation is determined as a sliding operation according to the trajectory coordinates, the user is considered to have turned the page on the current e-book page; or, according to the operation trajectory of the mouse, the operation is determined to be a sliding operation, and the page turning operation is considered to be performed on the e-book page. This embodiment of the present application does not limit this.
  • the currently displayed e-book page means a page that has been read and is to be turned over, unless otherwise specified.
  • Step S104 Using the edge paper color and the page content, draw and display the folded portion of the e-book image page operated by the page turning operation.
  • the e-book display interface during page turning generally includes a first area, a second area, and a third area.
  • the third area is an area of the folded portion of the e-book image page operated by the page turning operation
  • the first area is an area of the currently displayed e-book image page that is not blocked by the folded portion
  • the second area is current The displayed area in the next page of the displayed e-book image page.
  • FIG. 2 An e-book page displayed during a page-turning operation is as shown in FIG. 2.
  • the first e-book page is used to represent the currently displayed e-book image page (ie, has been read, to be turned over)
  • the image page of the page) uses the second e-book page to represent the e-book page to be displayed (ie, the page to be read, displayed after the page turning operation, may be an image page or a non-image page).
  • the first e-book page is used to represent the currently displayed e-book image page (ie, has been read, to be turned over)
  • the image page of the page) uses the second e-book page to represent the e-book page to be displayed (ie, the page to be read, displayed after the page turning operation, may be an image page or a non-image page).
  • the four outer lines AB, BC, CD, and DA represent the boundaries of the e-book page
  • A, B, C, and D are the four vertices of the page
  • the effect of the e-book page displayed during the page turning operation can be obtained from Start with any of the vertices, as shown in Figure 2 starting with the C vertex.
  • EF represents the hem formed by the page turning operation
  • the intersection of the hem and the page boundary BC is E
  • the intersection with the page CD is F.
  • the Folding Edge EF divides the e-book page into the area where the initial page turning operation point is located and the area where the current operation point is located, and these two areas constitute the entire e-book page.
  • the area where the initial operating point is located is the second area (the oblique line area in FIG. 2), and the axis area of the second area relative to the folded edge EF, that is, the EC'F area (C' is the first area along the folded side After the EF page is turned, the position of the vertex C is the third area (the vertical line and the horizontal line intersection area in FIG. 2), and the other area is the first area (in the area where the current operation point is located, except the third The area outside the area, the horizontal line area in Figure 2).
  • the edge paper color and the page content are used for drawing.
  • the edge paper color can be used as the e-book page paper color in the third area, and the corresponding page content is drawn according to the size of the area and the corresponding current e-book page position.
  • the size of the third area, the position corresponding to the current e-book page, the determination and reverse processing of the page content that the area should display, and the rendering of the first area and the second area may be any suitable means by those skilled in the art. The implementation of the present application does not limit this.
  • the completed first area, the second area, and the third area form an e-book page rendering effect during a complete page turning operation.
  • the third area may change according to the user's page turning operation, including but not limited to the size change, the shape change, etc., during a page turning operation.
  • the third region in FIG. 2 is also merely illustrative. In practice, there may also be a rectangular or trapezoidal third region, and the C vertex is the flipping vertices as an example, as the user goes from the right to the right. With the left sliding operation, the third area will gradually increase, and the content of the drawn page will gradually increase.
  • the device where the e-book reading application is located is received.
  • the paper color of the page edge of the currently displayed e-book image page and the page content are first acquired, and then the folded portion of the e-book image page displayed during the page turning operation is drawn based on the page turning operation.
  • the edge paper color is a part of the color of the e-book image page, and the matching with the e-book image page is higher, and the color matching is also more.
  • the display effect of the e-book image page is effectively improved, and the user's reading experience is improved;
  • the color data of the entire page needs to be collected and analyzed, and the edge paper color can effectively reflect
  • the current e-book image page situation also greatly reduces the amount of data processing for color data collection and analysis, improves the efficiency of e-book drawing and display, and further enhances the user's reading experience.
  • the e-book page display method of this embodiment may be executed by any suitable device having data processing capabilities, including but not limited to: a mobile terminal, an e-book reader or a desktop computer.
  • FIG. 3 a flow chart of steps of a method for displaying an e-book page according to a second embodiment of the present application is shown.
  • Step S202 determining whether the currently displayed e-book page is an e-book image page; if it is an e-book image page, executing step S204; if not for the e-book image page, executing step S208.
  • the e-book page display method of the embodiment of the present application is mainly directed to an e-book image page, that is, an e-book page content includes an image, and a portion of the image that overlaps with a boundary area of the e-book page exists, for example, an electronic A book cover, or a page with an image as a background or a decorative background in an e-book content page, or a page with an illustration of a border area of an e-book content page.
  • whether the currently displayed e-book page is an e-book image page may be determined according to a transparency value of the currently displayed e-book page. If the transparency value is indicated as opaque, it may be determined that the currently displayed e-book page is an e-book image page. However, it is not limited to this. If the transparency value is indicated as transparent, if it is further determined whether there is a picture and/or a decorative background in the area within the set distance of the currently displayed e-book page edge, it is determined that the current display is present.
  • the e-book page is also an e-book image page.
  • the element to be rendered includes both the specific content of the element to be drawn, such as text, picture, video, decorative background, and the like, and also includes a carrier for drawing the element to be drawn, such as a drawing board.
  • the drawing board is set to be transparent. If there is a full-screen image or a full-screen decorative background in the e-book page, the result image is completely opaque; if it is a plain text, it has a partially transparent color value. For example, the boundary area of the plain text page is transparent.
  • the boundary area of the e-book page still appears. It is a transparent color.
  • the text and the image are mixed and typeset, the picture is not in the range of the core, and part of the picture is located in the boundary area of the page, in this case, in the boundary area of the e-book page, the area covered by the picture is also opaque. This judgment by transparency The method greatly improves the efficiency of determining whether the e-book page is an e-book image page.
  • the method is not limited thereto, and other methods for determining whether the currently displayed e-book page is an e-book image page are also applicable, such as analyzing a visual element area in an e-book page layout process, according to image information in an e-book page, and/or Decorative background information for judgment, etc.
  • Step S204 After determining that the page turning operation on the currently displayed e-book image page is received, the edge paper color and the page content of the e-book image page are acquired.
  • the edge paper color is used to indicate the color of the paper within a set distance from the edge of the e-book image page.
  • the color value scan of the paper edge color can improve the efficiency of color extraction and judgment. Moreover, this method is consistent with the principle of the unprinted paper at the edge of the book page in the common sense of life.
  • the edge of the paper selects an area 1 pixel from the top, bottom, left and right borders of the e-book page.
  • the area within the distance set by the edge of the e-book image page may be determined; the pixel value of the pixel in the area is obtained; and the edge paper color is determined according to the acquired pixel value.
  • the pixel value of each pixel corresponds to a color. For example, RGB (255, 255, 255) is white, RGB (0, 0, 0) is black, and RGB (255, 0, 0) ) is red and so on.
  • the pixel values of the pixels in the area are obtained, and the corresponding edge paper color can be determined according to the pixel values.
  • RGB color space is only an exemplary description, and a person skilled in the art can select a corresponding color space according to actual needs, such as an HSV color space, an HSL color space, and the like, which is not limited by the embodiment of the present application.
  • the color indicated by the acquired pixel value may also indicate multiple color conditions.
  • the number of colors included in the area may be determined according to the acquired pixel values, thereby determining the edge paper color.
  • at least one of the following manners may be adopted, including: (1) if the number of colors included in the area is greater than a second set threshold and less than a third set threshold, all pixels are The color corresponding to the most occupied pixel value is determined as the edge paper color to be drawn; wherein the second set threshold and the third set threshold are both positive integers, the second set threshold is greater than 1, and the second The set threshold is smaller than the third set threshold; wherein the specific values of the second set threshold and the third set threshold may be appropriately set by a person skilled in the art without making the colors too mixed.
  • the second set threshold is set to 2
  • the third set threshold is set to 5; for example, the second set threshold is set to 2
  • the third set threshold is set to 30 of the number of pixels sampled. % rounded and so on. For example, if a pixel value of 1000 pixels in the area is collected, wherein the pixel value of 300 pixels is (255, 255, 255), and the pixel value of 200 pixels is (0, 0, 0), 500. The pixel value of each pixel is (255, 0, 0), and the color corresponding to the pixel value with the largest proportion, that is, the red corresponding to (255, 0, 0) can be determined as the edge paper color to be drawn.
  • the set color is determined as the edge paper color to be drawn.
  • the setting color may also be appropriately set by a person skilled in the art according to actual conditions, such as setting to white, or setting to light beige, light yellow, and the like.
  • the color may be determined as the edge paper color.
  • the number of colors is within the second set threshold and the third set threshold, it indicates that there are only a few colors in the currently displayed e-book image page, and the page color is relatively clean. At this time, the most used one is used. The color corresponding to the pixel value is used as the edge paper color, and the transition is natural, and the color matching effect is good.
  • the number of colors is greater than or equal to the third set threshold, it indicates that the currently displayed e-book image page is more complicated in color, and it is not easy to determine a color with a good matching degree, and the mottle color is easy to bring visual fatigue to the user, and still selects Which pixel ratio corresponds to the most The color can not achieve the effect of relieving the user's visual fatigue. Therefore, if the color of the currently displayed e-book image page is relatively complicated, the set color can be determined as the edge paper color of the e-book image page to provide a better reading experience for the user.
  • the ratio of the number of colors included in the region to the number of acquired pixel values may be determined according to the acquired pixel values, thereby determining the edge paper color.
  • at least one of the following manners may be adopted, including: (1) if the ratio is greater than the first set ratio and less than the second set ratio, the proportion of all the pixel values is the most The color corresponding to the pixel value is determined as the edge paper color to be drawn; wherein the second set ratio is greater than [1/(the number of acquired pixel values)], and the first set ratio is less than the second set ratio;
  • the specific values of the first set ratio and the second set ratio may be appropriately set by those skilled in the art without making the colors too mixed.
  • the set color is determined as the edge paper color to be drawn.
  • the setting color may also be appropriately set by a person skilled in the art according to actual conditions, such as setting to white, or setting to light beige, light yellow, and the like.
  • the color may be determined as the edge paper color.
  • ratios expressed as a percentage are also included in the "ratio" range of the embodiments of the present application.
  • the content of the page of the e-book image page including but not limited to the image and/or the text, may be obtained by a person skilled in the art using appropriate means, which is not limited in the embodiment of the present application.
  • Step S206 Using the page content of the edge paper color, draw and display the folded portion of the e-book image page operated by the page turning operation.
  • the page content may be first drawn in the folded portion, and then the edge paper color is drawn to the entire folded portion on the drawn page content.
  • the portion of the currently displayed e-book image page other than the folded portion, and the display portion of the next page of the currently displayed e-book image page can be actually determined by those skilled in the art. The situation chooses the appropriate way to draw the implementation. After all these parts have been drawn, the display presents the final drawing result.
  • the process of reducing the transparency of the drawn edge paper color may also be performed, that is, after the edge paper color is drawn to the entire folded portion over the drawn page content, the transparency of the drawn edge paper color is reduced, so that The final rendering is closer to the real page turning effect.
  • it may be first determined whether the brightness value of the drawn edge paper color is less than a first set threshold, and if less, the transparency of the drawn edge paper color is reduced.
  • the first setting threshold may be appropriately set by a person skilled in the art according to actual conditions, for example, set to 0.2; the amplitude of the transparency of the edge paper color may also be appropriately set by a person skilled in the art according to actual conditions, such as reducing the original transparency.
  • the folded portion of the e-book image page is highlighted.
  • the portion other than the folded portion it can be drawn by any suitable method by those skilled in the art, and details are not described herein.
  • OpenGL defines a professional graphical program interface that is cross-programming language and cross-platform programming interface specification, which is hardware-independent. To facilitate the drawing of 2D or 3D graphic images. But not limited to OpenGL, other methods, such as Unity or OpenCL, are also applicable.
  • the embodiment can use the OpenGL to draw the page turning effect process, and the constructed cylindrical model or the conical model can be used to make the constructed cylindrical model or the conical model and the tangent of the page. It coincides with the hem EF.
  • the cylindrical model or the conical model it is realized that the e-book page seems to be curled around the curved cylindrical model or the conical model.
  • the construction of the cylindrical model will be described as an example.
  • T0 is the initial operating point of the page turning operation
  • T1 is the current operating point of the page turning operation
  • the flange EF is formed according to the page turning operation of T0 to T1.
  • the intersection point H of the line parallel to the boundary CD and passing through the initial operation point T0 and the flange EF is defined as the first center point, with the first center point as the origin and the boundary CD in the direction in which The direction in which the X axis extends, the direction in which the boundary DA or BC adjacent to the boundary CD is located, and the direction in which the Y axis extends are the first rectangular coordinate system XYZ (shown in the lower left corner of FIG. 4).
  • a cylindrical model and a page tangent to the cylindrical model (hereinafter referred to as a build page for ease of distinction) are constructed on the first Cartesian coordinate system XYZ, which is parallel to the page ABCD.
  • the cylindrical model and its tangent construction page are three-dimensionally rotated so that the rotated cylindrical model (shown as a cylindrical model cross section in the dotted line in FIG. 4) coincides with the tangent and the folded edge EF of the construction page.
  • the page texture corresponding to the third area is segmented and rotated and then attached to the cylindrical model.
  • the page texture corresponding to the third area means the texture corresponding to the folded portion of the current e-book image page (including the image of the current e-book image page and the edge paper color).
  • the image of the current e-book image page is first drawn on the rotated cylindrical model, and then the edge paper color is drawn on the image.
  • the image is first divided into a plurality of n ⁇ m small square graphs, each of which has four vertices, and the four vertices are texture vertices; it is assumed that the image is divided into multiple triangles.
  • Block diagram each triangle block diagram has 3 vertices, which are texture vertices.
  • the first rectangular coordinate system is rotated to the second rectangular coordinate system X′Y′Z′.
  • the coordinates of the rotation of each texture vertex wherein the position of the flange EF in the second Cartesian coordinate system is rotated by (90-a) degrees with respect to the position of the flange EF in the first Cartesian coordinate system, where a represents the current turn Page angle.
  • the first rectangular coordinate system becomes a second right angle coordinate system after the first center point H is a rotation point and rotates clockwise (90-a) degrees around the Z axis
  • the second rectangular coordinate system The origin is still the first center point H
  • the axis corresponding to the X axis in the first Cartesian coordinate system is the X' axis
  • the second Cartesian coordinate system is the axis corresponding to the Y axis in the first Cartesian coordinate system.
  • the axis corresponding to the Z axis in the first Cartesian coordinate system is the Z' axis (coincident with the Z axis).
  • the tangent of the cylindrical model coincides with the hem EF of the constructed page, that is, the angle between the cylindrical model and the boundary CD is the current turning angle a
  • the second rectangular coordinate system is opposite to
  • the first constant coordinate system rotates clockwise (90-a) degrees around point H, so the cylinder
  • the model coincides with the Y' axis in the second Cartesian coordinate system, and it can be said that the cylindrical model is "shifted" in the second Cartesian coordinate system.
  • each texture vertex is also "shifted" after three-dimensional rotation to draw on the cylindrical model after "shifting".
  • the texture vertices and the cone model of each image block corresponding to the third region may be subjected to coordinate transformation processing, and the vertices of the converted cone model may be vertices of the flange, such as a hem EF The vertex E, and then the texture map according to the converted texture vertex coordinates.
  • the specific processing of the coordinate conversion can be performed by a person skilled in the art using a suitable mathematical method, and details are not described herein again.
  • the drawing of the first area and the second area may be implemented by a person skilled in the art by using conventional means.
  • the area range coordinates are first determined, and then information about all the pixel points of the image in the coordinate range is acquired. And then, in the coordinate range, image drawing and the like according to the information of the pixel points; for the second region, first determine the region range coordinates, and then acquire information of all the pixel points of the image in the coordinate range, and/or the coordinate range
  • the text information in the first embodiment and the second region are not limited in the embodiment of the present application.
  • Step S208 If the transparency value is indicated as being transparent, and there is no picture and/or decorative background in the area within the set distance of the currently displayed e-book page edge, the e-book page is first drawn in the entire folded portion. The default paper color, then the page content of the e-book page is drawn in the fold portion, and the result of the drawing is displayed.
  • the default paper color of the e-book page is first drawn in the entire folded portion, and then the page content of the e-book page is drawn in the folded portion, and the drawn content is displayed.
  • the default paper color such as parchment color
  • the content of the page to mimic the actual page turning effect of the page.
  • the transparency of the drawn page content can be further reduced to make the imitation effect better.
  • the page projection display of the e-book image page during the page turning process is realized, and the current e-book image page can be effectively matched and transitioned, the display effect of the e-book image page is improved, and the user reading is improved.
  • only the edge paper color processing greatly reducing the data processing of color data collection and analysis, improving the efficiency of e-book image page drawing and display, and further improving the user's reading experience.
  • the e-book page display method of this embodiment may be executed by any suitable device having data processing capabilities, including but not limited to: a mobile terminal, an e-book reader or a desktop computer.
  • FIG. 5 a flow chart of steps of an e-book page display method according to Embodiment 3 of the present application is shown.
  • Step S302 After receiving the page turning operation on the currently displayed e-book image page, obtain the page information to be displayed.
  • the page information to be displayed includes: a page content of the currently displayed e-book image page, an edge paper color of the currently displayed e-book image page, and a page content of a next page of the currently displayed e-book image page.
  • the edge paper color is used to indicate the color of the paper within a set distance from the edge of the e-book image page.
  • the setting distance can be appropriately set by a person skilled in the art according to actual conditions, and can be selected in a small area of the boundary of the e-book image page. For example, the area can be set to be one pixel from the four sides of the e-book image page. .
  • Step S304 drawing a third area of the e-book display interface by using the edge paper color and the page content of the currently displayed e-book image page; and drawing the first area of the e-book display interface by using the page content of the currently displayed e-book image page
  • the second area of the e-book display interface is drawn using the page content of the next page of the currently displayed e-book image page.
  • the e-book display interface is divided into a first area, a second area, and a third area, where the third area is an area of the folded portion of the e-book image page operated by the page turning operation, and the first area is the currently displayed e-book In the image page, the area that is not blocked by the folded portion, and the second area is the displayed area in the next page of the currently displayed e-book image page.
  • Step S306 Display the drawing result.
  • the e-book reading application performs content drawing and display in the corresponding part, including The folded portion of the e-book image page, the unfolded portion, and the display portion of the next page.
  • the drawing is performed according to the paper color of the page edge of the currently displayed e-book image page and the page content.
  • the edge paper color is a part of the color of the e-book image page, and the matching with the e-book image page is higher, and the color matching is also more.
  • the display effect of the e-book image page is effectively improved, and the user's reading experience is improved;
  • the color data of the entire page needs to be collected and analyzed, and the edge paper color can effectively reflect
  • the current e-book image page situation also greatly reduces the amount of data processing for color data collection and analysis, improves the efficiency of e-book drawing and display, and further enhances the user's reading experience.
  • the e-book page display method of this embodiment may be executed by any suitable device having data processing capabilities, including but not limited to: a mobile terminal, an e-book reader or a desktop computer.
  • FIG. 6 a flow chart of steps of an e-book page display method according to Embodiment 4 of the present application is shown.
  • Step S402 After receiving the page turning operation on the currently displayed e-book image page, acquiring the page information to be displayed.
  • the page information to be displayed includes: a page content of the currently displayed e-book image page, an edge paper color of the currently displayed e-book image page, and a page content of a next page of the currently displayed e-book image page, wherein the edge
  • the paper color is used to indicate the color of the paper within the set distance from the edge of the e-book image page.
  • a feasible acquisition manner includes: acquiring a pixel value of a pixel in an area within a set distance from an edge of the e-book image page; and acquiring the currently displayed image according to the pixel value
  • the edge paper color information of the e-book image page instead of the traditional full-image scan, the color value scan of the paper edge color can improve the efficiency of color extraction and judgment. Moreover, this method is consistent with the principle of the unprinted paper at the edge of the book page in the common sense of life.
  • the edge of the paper selects an area 1 pixel from the top, bottom, left and right borders of the e-book page.
  • any one or a combination of the following may be employed. Specifically, these methods include: according to the image The prime value determines the number of colors included in the region within the set distance from the edge of the e-book image page; (1) if the number of colors included in the region is greater than the second set threshold and less than the third set threshold, then The color corresponding to the most occupied pixel value of all the pixel values is determined as the edge paper color to be drawn; wherein the second set threshold and the third set threshold are both positive integers, and the second set threshold is greater than 1, And the second setting threshold is smaller than the third setting threshold, and the specific setting of the second setting threshold and the third setting threshold may be appropriately set by a person skilled in the art according to actual conditions.
  • the set color is determined as the edge paper color to be drawn, wherein the set color may be appropriately determined by a person skilled in the art according to actual conditions.
  • the setting preferably, can be set to white.
  • the color is determined as the edge paper color.
  • the ratio of the number of colors included in the region to the number of acquired pixel values may be determined according to the acquired pixel values, thereby determining the edge paper color.
  • at least one of the following manners may be adopted, including: (1) if the ratio is greater than the first set ratio and less than the second set ratio, the proportion of all the pixel values is the most The color corresponding to the pixel value is determined as the edge paper color to be drawn; wherein the second set ratio is greater than [1/(the number of acquired pixel values)], and the first set ratio is less than the second set ratio;
  • the specific values of the first set ratio and the second set ratio may be appropriately set by those skilled in the art without making the colors too mixed.
  • the set color is determined as the edge paper color to be drawn.
  • the setting color may also be appropriately set by a person skilled in the art according to actual conditions, such as setting to white, or setting to light beige, light yellow, and the like.
  • the color may be determined as the edge paper color.
  • ratios expressed as a percentage are also included in the "ratio" range of the embodiments of the present application.
  • the page content of the currently displayed e-book image page and the page content of the next page of the currently displayed e-book image page may be acquired by a conventional acquisition method.
  • Step S404 determining a folded edge of the e-book image page according to the initial operating point and the current operating point of the page turning operation; dividing the e-book display interface into an area where the initial operating point is located and an area where the current operating point is located; The area where the initial operation point is located is taken as the second area; the axisymmetric area of the second area with respect to the hemming is taken as the third area; and the area other than the third area in the area where the current operation point is located is taken as the first area.
  • the e-book display interface in the page turning process will display different contents in different areas, and the area division is needed to draw and display the corresponding content.
  • the third area is an area of the folded portion of the e-book image page operated by the page turning operation
  • the first area is an area of the currently displayed e-book image page that is not blocked by the folded portion
  • the second area The area is the displayed area in the next page of the currently displayed e-book image page.
  • Step S406 drawing a third area of the e-book display interface by using the edge paper color and the page content of the currently displayed e-book image page; and drawing the first area of the e-book display interface by using the page content of the currently displayed e-book image page
  • the second area of the e-book display interface is drawn using the page content of the next page of the currently displayed e-book image page.
  • the page content corresponding to the third area in the page content of the currently displayed e-book image page may be drawn to the third area; on the drawn page content, the edge paper color is drawn to the third area region.
  • the step of drawing the edge paper color to the third area on top of the drawn page content After that, reduce the transparency of the painted edge paper color.
  • Step S408 Display the drawing result.
  • the e-book reading application performs content drawing and display in the corresponding part, including The folded portion of the e-book image page, the unfolded portion, and the display portion of the next page.
  • the drawing is performed according to the paper color of the page edge of the currently displayed e-book image page and the page content.
  • the edge paper color is a part of the color of the e-book image page, and the matching with the e-book image page is higher, and the color matching is also more.
  • the display effect of the e-book image page is effectively improved, and the user's reading experience is improved;
  • the color data of the entire page needs to be collected and analyzed, and the edge paper color can effectively reflect
  • the current e-book image page situation also greatly reduces the amount of data processing for color data collection and analysis, improves the efficiency of e-book drawing and display, and further enhances the user's reading experience.
  • the e-book page display method of this embodiment may be executed by any suitable device having data processing capabilities, including but not limited to: a mobile terminal, an e-book reader or a desktop computer.
  • FIG. 7 a block diagram of a structure of an e-book page display apparatus according to Embodiment 5 of the present application is shown.
  • the e-book page display device of the embodiment includes: a first obtaining module 502, configured to determine, after receiving a page turning operation on the currently displayed e-book image page, acquiring edge paper color and page content of the e-book image page, wherein The edge paper color is used to indicate the color of the paper within the set distance from the edge of the e-book image page; the drawing display module 504 is configured to use the edge paper color and the page content to draw and display the e-book image page operated by the page turning operation The folded part.
  • the e-book page display device of the embodiment is used to implement the corresponding e-book page display method in the first embodiment or the second embodiment, and has the beneficial effects of the corresponding method embodiments, and details are not described herein again.
  • FIG. 8 a block diagram of a structure of an e-book page display apparatus according to Embodiment 6 of the present application is shown.
  • the e-book page display device of the embodiment includes: a first obtaining module 602, configured to determine, after receiving a page turning operation on the currently displayed e-book image page, acquiring edge paper color and page content of the e-book image page, wherein The edge paper color is used to indicate the color of the paper within the set distance from the edge of the e-book image page; the drawing display module 604 is configured to use the edge paper color and the page content to draw and display the e-book image page operated by the page turning operation The folded part.
  • the drawing display module 604 includes: a first content drawing module 6042, configured to draw page content in a folded portion of the e-book image page; and a first color drawing module 6044, configured to use the drawn page content The edge paper color is drawn to the entire folded portion; the first display module 6046 is for displaying the result of the drawing.
  • the drawing display module 604 further includes: a first transparency module 6048, configured to reduce the transparency of the drawn edge paper color before the first display module 6046 displays the rendered result.
  • a first transparency module 6048 configured to reduce the transparency of the drawn edge paper color before the first display module 6046 displays the rendered result.
  • the first transparency module 6048 is configured to determine whether the brightness value of the drawn edge paper color is less than a first set threshold; if less, reduce the transparency of the drawn edge paper color.
  • the first obtaining module 602 includes: a first receiving module 6022, configured to determine that a page turning operation is performed on the currently displayed e-book image page; and the first content obtaining module 6024 is configured to acquire an e-book image page. a page content; a first pixel obtaining module 6026, configured to determine an area within a distance set from an edge of the e-book image page; acquire a pixel value of a pixel in the area; and a first color determining module 6028 configured to acquire the pixel according to the pixel The value determines the edge paper color.
  • the first color determining module 6028 includes: a first quantity determining unit 60282, configured to determine, according to the acquired pixel value, a quantity of colors included in the area; and a first determining unit 60284, configured to be used in the area
  • the number of included colors is greater than the second set threshold and less than the third set threshold, the color corresponding to the most occupied pixel value among all the pixel values is determined as the edge paper color to be drawn; wherein, the second setting The threshold and the third set threshold are both positive integers, the second set threshold is greater than 1, and the second set threshold is less than the third set threshold.
  • the first quantity determining unit 60282 is configured to determine, according to the acquired pixel value, a ratio of the number of colors included in the area to the number of acquired pixel values; and the first determining unit 60284 is configured to: if the ratio is If the value is greater than the first set ratio and less than the second set ratio, the color corresponding to the pixel value of the most pixel values is determined as the edge paper color to be drawn; wherein the second set ratio is greater than [1/ (the number of acquired pixel values)], and the first set ratio is smaller than the second set ratio.
  • the first color determining module 6028 further includes: a second determining unit 60286, configured to determine the set color as the to-be-drawn if the number of colors included in the area is greater than or equal to a third set threshold Edge paper color.
  • the second determining unit 60286 is configured to determine the set color as the to-be-drawn if the ratio of the number of colors included in the area to the number of acquired pixel values is greater than or equal to the second set ratio Edge paper color.
  • the first color determining module 6028 further includes: a third determining unit 60288, configured to determine the one color as the edge paper color if only one color is included in the area.
  • the e-book page display device of the embodiment further includes: an image page determining module 606, configured to: before the first obtaining module 602 determines that the page turning operation on the currently displayed e-book image page is received, according to the current display
  • the transparency value of the e-book page determines whether the currently displayed e-book page is an e-book image page; if the transparency value indicates opacity, it determines that the currently displayed e-book page is an e-book image page.
  • the image page determining module 606 is further configured to: if the transparency value is indicated as being transparent, determine whether a picture and/or a decorative background exists in an area within a set distance of the currently displayed e-book page edge; if yes, determine The currently displayed e-book page is an e-book image page.
  • the e-book page display device of the embodiment further includes: a non-image page processing module 608, configured to: if the transparency value is indicated as being transparent, and not within an area within a set distance of the currently displayed e-book page edge If there is a picture and/or decorative background, the default paper color of the e-book page is first drawn in the entire folded portion, and then the page content of the e-book page is drawn in the folded portion, and the result of the drawing is displayed.
  • a non-image page processing module 608 configured to: if the transparency value is indicated as being transparent, and not within an area within a set distance of the currently displayed e-book page edge If there is a picture and/or decorative background, the default paper color of the e-book page is first drawn in the entire folded portion, and then the page content of the e-book page is drawn in the folded portion, and the result of the drawing is displayed.
  • the non-image page processing module 608 is further configured to reduce the transparency of the page content before displaying the result of the drawing after the page content of the e-book page is drawn by the folding portion.
  • the e-book page display device of the embodiment is used to implement the corresponding e-book page display method in the first embodiment or the second embodiment, and has the beneficial effects of the corresponding method embodiments, and details are not described herein again.
  • FIG. 9 a schematic structural diagram of a terminal device according to Embodiment 7 of the present application is shown.
  • the specific implementation of the present application does not limit the specific implementation of the terminal device.
  • the terminal device may include a first processor 702, a first communication interface 704, a first memory 706, and a first communication bus 708. among them:
  • the first processor 702, the first communication interface 704, and the first memory 706 complete communication with one another via the first communication bus 708.
  • the first communication interface 704 is configured to communicate with network elements of other devices, such as other terminal devices or servers.
  • the first processor 702 is configured to execute the program 710, and specifically, the related steps in the foregoing embodiment of the e-book page display method.
  • program 710 can include program code, the program code including computer operating instructions.
  • the first processor 702 may be a central processing unit CPU, or an Application Specific Integrated Circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present application.
  • the one or more processors included in the terminal device may be the same type of processor, such as one or more CPUs; or may be different types of processors, such as one or more CPUs and one or more ASICs.
  • the first memory 706 is configured to store the program 710 and related data of the e-book page.
  • the first memory 706 may include a high speed RAM memory and may also include a non-volatile memory, such as at least one disk memory.
  • the program 710 may be specifically configured to cause the first processor 702 to perform an operation of: obtaining an edge paper color and a page content of an e-book image page after receiving a page turning operation on the currently displayed e-book image page, wherein the edge paper The color is used to indicate the color of the paper within the set distance from the edge of the e-book image page; the edge paper color and the page content are used to draw and display the folded portion of the e-book image page operated by the page turning operation.
  • the program 710 is further configured to cause the first processor 702 to draw and display the folded portion of the e-book image page operated by the page turning operation when using the edge paper color and the page content:
  • the folded portion of the e-book image page draws the page content; on the drawn page content, the edge paper color is drawn to the entire folded portion; the drawn result is displayed.
  • the program 710 is further configured to cause the first processor 702 to reduce the transparency of the rendered edge paper color prior to displaying the rendered result.
  • the program 710 is further configured to: when the first processor 702 reduces the transparency of the drawn edge paper color: determining whether the brightness value of the drawn edge paper color is less than a first set threshold; Less than, reduces the transparency of the painted edge paper color.
  • the program 710 is further configured to: when acquiring the edge paper color of the e-book image page: determining an area within a set distance from the edge of the e-book image page; acquiring the The pixel value of the pixel in the area; the edge paper color is determined according to the acquired pixel value.
  • the program 710 is further configured to: when determining, by the first processor 702, the edge paper color according to the acquired pixel value: determining the number of colors included in the region according to the acquired pixel value; If the number of colors included in the area is greater than the second set threshold and less than the third set threshold, the color corresponding to the pixel value of the most pixel values is determined as the edge paper color to be drawn;
  • the second set threshold and the third set threshold are both positive integers, the second set threshold is greater than 1, and the second set threshold is less than the third set threshold; or, the inclusion of the region is determined according to the acquired pixel values a ratio of the number of colors to the number of acquired pixel values; if the ratio is greater than the first set ratio and less than the second set ratio, all pixel values are The color corresponding to the most occupied pixel value is determined as the edge paper color to be drawn; wherein, the second set ratio is greater than [1/(the number of acquired pixel values)], and the first set ratio is smaller than the second Set the ratio
  • the program 710 is further configured to cause the first processor 702 to determine the set color when the number of colors included in the area is greater than or equal to the third set threshold. a color of the edge paper to be drawn; or, if the ratio of the number of colors included in the area to the number of acquired pixel values is greater than or equal to the second set ratio, determining the set color as the to-be-drawn Edge paper color.
  • the program 710 is further configured to cause the first processor 702 to determine the color as the edge paper color if only one color is included in the area.
  • the program 710 is further configured to cause the first processor 702 to determine a transparency value of the currently displayed e-book page before determining to receive a page turning operation on the currently displayed e-book image page. And determining whether the currently displayed e-book page is an e-book image page; if the transparency value is indicated as opaque, determining that the currently displayed e-book page is an e-book image page.
  • the program 710 is further configured to: when the transparency value indicates that the transparency value is transparent, determine whether the image exists in an area within a set distance of the currently displayed e-book page edge. And/or decorative background; if present, it is determined that the currently displayed e-book page is an e-book image page.
  • the program 710 is further configured to cause the first processor 702 to have no picture and if the transparency value is indicated as being transparent, and within a distance within a set distance from the currently displayed e-book page edge. / / When decorating the background, the default paper color of the e-book page is first drawn in the entire folded portion, and then the page content of the e-book page is drawn in the folded portion, and the result of the drawing is displayed.
  • the program 710 is further configured to cause the first processor 702 to reduce the transparency of the page content after displaying the result of the drawing after the page content of the e-book page is drawn by the folding portion.
  • the display effect of the e-book page is effectively improved, and the user's reading experience is improved; on the other hand, the data processing amount of the color data collection and analysis is greatly reduced, and the e-book drawing is improved. And display efficiency, which further enhances the user's reading experience.
  • FIG. 10 a block diagram of a structure of an e-book page display apparatus according to Embodiment 8 of the present application is shown.
  • the e-book page display device of the embodiment includes: a second obtaining module 802, configured to acquire page information to be displayed after receiving a page turning operation on the currently displayed e-book image page, wherein the page information to be displayed The image content of the currently displayed e-book image page, the edge paper color of the currently displayed e-book image page, and the page content of the next page of the currently displayed e-book image page, wherein the edge paper color is used to indicate the distance electronic
  • the edge of the book image page sets the color of the paper within the distance
  • the drawing module 804 is configured to draw the third area of the e-book display interface using the edge paper color and the page content of the currently displayed e-book image page; using the currently displayed electronic a page area of the book image page, drawing a first area of the e-book display interface; drawing a second area of the e-book display interface using the page content of the next page of the currently displayed e-book image page;
  • the e-book page display device of the embodiment is used to implement the corresponding e-book page display method in the third embodiment or the fourth embodiment, and has the beneficial effects of the corresponding method embodiments, and details are not described herein again.
  • FIG. 11 a block diagram of a structure of an e-book page display apparatus according to Embodiment 9 of the present application is shown.
  • the e-book page display device of the embodiment includes: a second obtaining module 902, configured to acquire page information to be displayed after receiving a page turning operation on the currently displayed e-book image page, wherein the page information to be displayed The image content of the currently displayed e-book image page, the edge paper color of the currently displayed e-book image page, and the page content of the next page of the currently displayed e-book image page, wherein the edge paper color is used to indicate the distance electronic
  • the edge of the book image page sets the color of the paper within the distance
  • the drawing module 904 is configured to draw the third area of the electronic book display interface using the edge paper color and the page content of the currently displayed e-book image page; using the currently displayed electronic a page area of the book image page, drawing a first area of the e-book display interface; drawing a second area of the e-book display interface using the page content of the next page of the currently displayed e-book image page;
  • the drawing module 904 is configured to: when the third area of the electronic book display interface is drawn by using the edge paper color and the page content of the currently displayed electronic book image page: corresponding to the page content of the currently displayed electronic book image page The page content in the third area is drawn to the third area; above the drawn page content, the edge paper color is drawn to the third area.
  • the drawing module 904 is further configured to reduce the transparency of the drawn edge paper color after the edge paper color is drawn to the third area on the drawn page content.
  • the second obtaining module 902 includes: a second receiving module 9022, configured to receive a page turning operation on the currently displayed e-book image page; and a second content obtaining module 9024, configured to obtain the page information to be displayed.
  • the second pixel acquisition module 9026 is configured to acquire an area within a set distance from the edge of the e-book image page
  • the pixel value of the pixel in the second color determining module 9028 is configured to acquire edge paper color information of the currently displayed e-book image page according to the pixel value.
  • the second color determining module 9028 includes: a second quantity determining unit 90282, configured to determine, according to the pixel value, a quantity of colors included in the area; a fourth determining unit 90284, configured to be used in the area
  • the number of included colors is greater than the second set threshold and less than the third set threshold, the color corresponding to the most occupied pixel value among all the pixel values is determined as the edge paper color to be drawn; wherein, the second setting The threshold and the third set threshold are both positive integers, the second set threshold is greater than 1, and the second set threshold is less than the third set threshold.
  • the second quantity determining unit 90282 is configured to determine, according to the acquired pixel value, a ratio of the number of colors included in the area to the number of acquired pixel values; and fourth determining unit 90284, configured to: if the ratio is greater than When a ratio is set and is smaller than the second set ratio, the color corresponding to the pixel value of the most pixel values is determined as the edge paper color to be drawn; wherein the second set ratio is greater than [1/(acquisition) The number of pixel values), and the first set ratio is less than the second set ratio.
  • the second color determining module 9028 further includes: a fifth determining unit 90286, configured to determine the set color as the to-be-drawn if the number of colors included in the area is greater than or equal to a third set threshold Edge paper color.
  • the fifth determining unit 90286 is configured to determine the set color as the to-be-drawn if the ratio of the number of colors included in the area to the number of acquired pixel values is greater than or equal to the second set ratio Edge paper color.
  • the second color determining module 9028 further includes: a sixth determining unit 90288, configured to determine the color as the edge paper color if only one color is included in the area.
  • the e-book page display device of the embodiment further includes: an area dividing module 908, configured to draw the e-book display interface by using the edge paper color and the page content of the currently displayed e-book image page in the drawing module 904 Before the three regions, determining the folded edge of the e-book image page according to the initial operating point and the current operating point of the page turning operation; dividing the e-book display interface into the region where the initial operating point is located and the current operating point a region; the region in which the initial operating point is located as the second region; the axisymmetric region of the second region relative to the hemming as the third region; and the region other than the third region in the region where the current operating point is located as the first region region.
  • an area dividing module 908 configured to draw the e-book display interface by using the edge paper color and the page content of the currently displayed e-book image page in the drawing module 904 Before the three regions, determining the folded edge of the e-book image page according to the initial operating point and the current operating point
  • the e-book page display device of the embodiment is used to implement the corresponding e-book page display method in the third embodiment or the fourth embodiment, and has the beneficial effects of the corresponding method embodiments, and details are not described herein again.
  • FIG. 12 a schematic structural diagram of a terminal device according to Embodiment 10 of the present application is shown.
  • the specific implementation of the present application does not limit the specific implementation of the terminal device.
  • the terminal device may include a second processor 1002, a second communication interface 1004, a second memory 1006, and a second communication bus 1008. among them:
  • the second processor 1002, the second communication interface 1004, and the second memory 1006 complete communication with each other through the second communication bus 1008.
  • the second communication interface 1004 is configured to communicate with network elements of other devices, such as other terminal devices or servers.
  • the second processor 1002 is configured to execute the program 1010, and specifically may perform the related steps in the foregoing embodiment of the e-book page display method.
  • program 1010 can include program code, the program code including computer operating instructions.
  • the second processor 1002 may be a central processing unit CPU, or an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present application.
  • the one or more processors included in the terminal device may be the same type of processor, such as one or more CPUs; or may be different types of processors, such as one or more CPUs and one or more ASICs.
  • the second memory 1006 is configured to store the program 1010 and related data of the e-book page.
  • the second memory 1006 may include a high speed RAM memory and may also include a non-volatile memory such as at least one disk memory.
  • the program 1010 is specifically configured to enable the second processor 1002 to: after receiving the page turning operation on the currently displayed e-book image page, obtain the page information to be displayed, where the page information to be displayed includes: current The page content of the displayed e-book image page, the edge paper color of the currently displayed e-book image page, and the page content of the next page of the currently displayed e-book image page, wherein the edge paper color is used to indicate the distance e-book image page
  • the edge sets the color of the paper within the distance; uses the currently displayed e-book The edge paper color and page content of the image page, draw a third area of the e-book display interface; draw the first area of the e-book display interface using the page content of the currently displayed e-book image page; use the currently displayed e-book image page
  • the page content of the next page, the second area of the e-book display interface is drawn; the drawing result is displayed; wherein the third area is the area of the folded portion of the e-book image page operated by the
  • the program 1010 is further configured to cause the second processor 1002 to draw the third area of the e-book display interface when using the edge paper color and the page content of the currently displayed e-book image page:
  • the page content corresponding to the third area in the page content of the currently displayed e-book image page is drawn to the third area; above the drawn page content, the edge paper color is drawn to the third area.
  • the program 1010 is further configured to cause the second processor 1002 to reduce the transparency of the drawn edge paper color after the edge paper color is drawn to the third area over the drawn page content.
  • the program 1010 is further configured to: when acquiring the page information to be displayed, the second processor 1002: acquiring a pixel value of a pixel in an area within a set distance from an edge of the e-book image page; Obtaining edge paper color information of the currently displayed e-book image page according to the pixel value.
  • the program 1010 is further configured to: when the second processor 1002 acquires edge paper color information of the currently displayed e-book image page according to the pixel value: determining, according to the pixel value, The number of colors included in the area; if the number of colors included in the area is greater than a second set threshold and less than a third set threshold, the color corresponding to the pixel value of the most pixel values is determined as The edge paper color to be drawn; wherein the second set threshold and the third set threshold are both positive integers, the second set threshold is greater than 1, and the second set threshold is less than the third set threshold; or, according to the acquisition a pixel value determines a ratio of the number of colors included in the region to the number of acquired pixel values; if the ratio is greater than the first set ratio and less than the second set ratio, then all of the pixel values are compared The color corresponding to the most pixel value is determined as the edge paper color to be drawn; wherein, the second set ratio is greater than [1/(the number of acquired
  • the program 1010 is further configured to cause the second processor 1002 to determine the set color as if the number of colors included in the area is greater than or equal to the third set threshold.
  • the program 1010 is further configured to cause the second processor 1002 to determine the color as the edge paper color if only one color is included in the area.
  • the program 1010 is further configured to cause the second processor 1002 to draw the third area of the electronic book display interface before using the edge paper color and the page content of the currently displayed electronic book image page, according to
  • the initial operating point and the current operating point of the page turning operation determine the folded edge of the e-book image page; the e-book display interface is divided into the area where the initial operating point is located and the area where the current operating point is located by the folded edge; the initial operation is performed
  • the area where the point is located is the second area; the axisymmetric area of the second area with respect to the hemming is used as the third area; and the area other than the third area of the area where the current operating point is located is taken as the first area.
  • the display effect of the e-book page is effectively improved, and the user's reading experience is improved; on the other hand, the data processing amount of the color data collection and analysis is greatly reduced, and the e-book drawing is improved. And display efficiency, which further enhances the user's reading experience.
  • the above method according to an embodiment of the present application may be implemented in hardware, firmware, or as an application or computer code storable in a recording medium such as a CD ROM, a RAM, a floppy disk, a hard disk, or a magneto-optical disk, or implemented by
  • the network downloads computer code originally stored in a remote recording medium or non-transitory machine readable medium and stored in a local recording medium so that the methods described herein can be stored using a general purpose computer, a dedicated processor or programmable
  • Such application processing on a recording medium of dedicated hardware such as an ASIC or an FPGA.
  • a computer, processor, microprocessor controller or programmable hardware includes storage components (eg, RAM, ROM, flash memory, etc.) that can store or receive application or computer code, when the application or computer code is
  • storage components eg, RAM, ROM, flash memory, etc.
  • the e-book page display method described herein is implemented when the processor or hardware accesses and executes.
  • execution of the code converts the general purpose computer into a special purpose computer for executing the e-book page display shown herein.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Artificial Intelligence (AREA)
  • Health & Medical Sciences (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • Controls And Circuits For Display Device (AREA)
  • User Interface Of Digital Computer (AREA)
  • Processing Or Creating Images (AREA)

Abstract

一种电子书页面显示方法、装置和终端设备,电子书页面显示方法包括:确定接收到对当前显示的电子书图像页面的翻页操作后,获取所述电子书图像页面的边缘纸张颜色和页面内容(S102),使用所述边缘纸张颜色和所述页面内容,绘制并显示所述翻页操作所操作的电子书图像页面的翻折部分(S104)。本方法能有效改进了电子书页面的显示效果。

Description

电子书页面显示方法、装置和终端设备
本申请要求于2017年3月30日提交中国专利局、申请号为201710202333.6,发明名称为“电子书页面显示方法、装置和终端设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及数据处理技术领域,尤其涉及一种电子书页面显示方法、装置和一种终端设备。
背景技术
电子书是利用计算机技术将文字、图片、声音、影像等信息内容数字化的出版物。随着互联网技术应用的越来越广泛,传统的纸质阅读方式已逐渐被电子书取代,人们越来越趋向于利用互联网和计算机技术,通过用于阅读电子书的阅读应用下载电子书进行阅读。
在阅读电子书的过程中,用户最经常做的操作是电子书翻页操作。翻页操作过程中,电子书页面会随着用户的滑动操作显示相应的翻页效果,在整个显示界面中,一部分显示为当前页面(已阅读的页面)的内容,一部分显示为下一页面(待阅读的页面)的内容,而另一部分则显示为当前页面的翻折部分(即当前页面被翻折的那部分,其为当前页面背面的一部分),以形成完整的翻页效果。
目前,翻页过程中当前页面的翻折部分通常仅显示为固定的颜色,如,显示为白色或显示为设定的纸张颜色。这种简单的颜色显示方式使得翻页过程中的页面颜色不能够很好地进行匹配,影响电子书的页面显示效果。
发明内容
本申请实施例提供了一种电子书页面显示方法、装置和一种终端设备,以解决目前电子书翻页过程中,页面颜色不能够很好地进行匹配,影响电子书的页面显示效果的问题。
根据本申请实施例,一种电子书页面显示方法,包括:确定接收到对当前显示的电子书图像页面的翻页操作后,获取所述电子书图像页面的边缘纸张颜色和页面内容,其中,所述边缘纸张颜色用于指示距离所述电子书图像页面边缘设定距离内的纸张的颜色;使用所述边缘纸张颜色和所述页面内容,绘制并显示所述翻页操作所操作的电子书图像页面的翻折部分。
通过本发明实施例提供的电子书页面显示方案,在用户想要对正在阅读的电子书页面尤其是电子书图像页面进行翻页,进行了相应的翻页操作后,电子书阅读应用所在设备,如移动终端、台式机等,在接收到该翻页操作后,会首先获取当前显示的电子书图像页面的页面边缘的纸张颜色以及页面内容,进而以此为依据绘制翻页操作过程中显示的电子书图像页面的翻折部分。与传统的使用固定颜色显示电子书图像页面的翻折部分的方式相比,一方面,边缘纸张颜色作为电子书图像页面颜色的一部分,与电子书图像页面的匹配度更高,颜色搭配也更为协调,有效改进了电子书图像页面的显示效果,提升用户阅读体验;另一方面,与传统的页面颜色分析需要对整个页面的颜色数据进行采集和分析相比,边缘纸张颜色既能有效反映当前的电子书图像页面情况,也大大降低了颜色数据的采集和分析的数据处理量,提升了电子书绘制和显示 效率,也进一步提升了用户的阅读体验。
附图说明
图1是根据本申请实施例一的一种电子书页面显示方法的步骤流程图;
图2是根据本申请实施例的一种翻页过程中显示的电子书页面的区域划分示意图;
图3是根据本申请实施例二的一种电子书页面显示方法的步骤流程图;
图4是根据本申请实施例的一种翻页效果绘制过程中使用的圆柱模型的示意图;
图5是根据本申请实施例三的一种电子书页面显示方法的步骤流程图;
图6是根据本申请实施例四的一种电子书页面显示方法的步骤流程图;
图7是根据本申请实施例五的一种电子书页面显示装置的结构框图;
图8是根据本申请实施例六的一种电子书页面显示装置的结构框图;
图9是根据本申请实施例七的一种终端设备的结构示意图;
图10是根据本申请实施例八的一种电子书页面显示装置的结构框图;
图11是根据本申请实施例九的一种电子书页面显示装置的结构框图;
图12是根据本申请实施例十的一种终端设备的结构示意图。
具体实施方式
下面结合附图(若干附图中相同的标号表示相同的元素)和实施例,对本申请实施例的具体实施方式作进一步详细说明。以下实施例用于说明本申请,但不用来限制本申请的范围。
本领域技术人员可以理解,本申请实施例中的“第一”、“第二”等术语仅用于区别不同步骤、设备或模块等,既不代表任何特定技术含义,也不表示它们之间的必然逻辑顺序。
实施例一
参照图1,示出了根据本申请实施例一的一种电子书页面显示方法的步骤流程图。
本实施例的电子书页面显示方法包括以下步骤:
步骤S102:确定接收到对当前显示的电子书图像页面的翻页操作后,获取电子书图像页面的边缘纸张颜色和页面内容。
本申请实施例中,电子书图像页面意指电子书页面内容中包含图像,并且,该图像中存在与电子书页面的边界区域相重合的部分。其中,电子书页面的边界区域可以设置为进行边缘纸张取色的区域,如距离电子书图像页面边缘设定距离内的区域。
边缘纸张颜色用于指示距离电子书图像页面边缘设定距离内的纸张的颜色。其中,设定距离可以由本领域技术人员根据实际需求适当设置,可在电子书图像页面边缘区域取色即可,如,设置为四边均距离电子书图像页面的四个页面边界一个像素或者一毫米的距离等等。
边缘纸张颜色能够有效反映当前电子书图像页面的构色情况,例如,电子书封面或者电子书页面的某个或某几个边界区域中设置有插图的页面,其边缘纸张颜色可能包括多种颜色;又例如,若当前电子书页面的主要内容虽然为文字,但使用了有不同颜色元素的图片背景或者装饰背景时,其边缘纸张颜色也可能包括多种颜色。对这些边缘纸张颜色进行提取,将其与电子书图像页面的页面内容(如图像和/或文字)相结合,作为绘制翻页过程中显示的电子书图像页面的翻折部分的依据,在提升颜色数据的处理效率的同时,因其与当前显示的电子书图像页面的匹配度较高,颜色搭配更为 协调,有效提升了电子书页面尤其是电子书图像页面显示的效果。
对当前显示的电子书图像页面的页面内容的获取可以由本领域技术人员根据实际情况设置任意适当的方式实现,如,在电子书页面绘制时获取绘制的页面内容的信息,或者,确定电子书页面的绘制区域,进而从该区域中获取绘制的内容等等,本申请实施例对此不作限制。
此外,确定接收到对当前显示的电子书页面的翻页操作的实现方式,同样可以由本领域技术人员根据实际情况适当设置,例如,检测到用户通过触摸屏对当前显示的电子书页面进行了操作,根据其轨迹坐标确定该操作为滑动操作,则认为用户对当前电子书页面进行了翻页操作;或者,根据鼠标的操作轨迹确定该操作为滑动操作,认为对电子书页面进行了翻页操作等,本申请实施例对此也不作限制。
另外,如无特别说明,本申请实施例中,当前显示的电子书页面意指已阅读过、待翻页的页面。
步骤S104:使用边缘纸张颜色和页面内容,绘制并显示翻页操作所操作的电子书图像页面的翻折部分。
翻页过程中的电子书显示界面通常包括第一区域、第二区域和第三区域。其中,第三区域为翻页操作所操作的电子书图像页面的翻折部分的区域,第一区域为当前显示的电子书图像页面中,未被翻折部分遮挡的区域,第二区域为当前显示的电子书图像页面的下一页面中的被显示区域。
一种翻页操作过程中显示的电子书页面如图2所示,为便于区分,本申请实施例中,使用第一电子书页面表示当前显示的电子书图像页面(即已阅读过、待翻页的图像页面),使用第二电子书页面表示待显示的电子书页面(即待阅读的、翻页操作后显示的页面,可以为图像页面,也可以为非图像页面)。图2中,四条外边线AB、BC、CD、DA表示电子书页面的边界,A、B、C、D为页面的四个顶点,翻页操作过程中显示的电子书页面的效果可以从其中的任何一个顶点开始,图2中以从C顶点开始为例。EF表示翻页操作形成的折边,折边与页面边界BC的交点为E,与页面CD的交点为F。折边EF将电子书页面划分为翻页初始操作点所在的区域和当前操作点所在的区域,这两个区域组成整个电子书页面。其中,初始操作点所在的区域为第二区域(图2中的斜线区域),第二区域相对于折边EF的轴对称区域,即EC’F区域(C’为第一区域沿折边EF翻页后,顶点C的位置),为第三区域(图2中的竖线和横线交叉区域),除此之外的区域为第一区域(当前操作点所在区域中,除第三区域外的区域,图2中的横线区域)。
本申请实施例中,对于第三区域,使用边缘纸张颜色和页面内容进行绘制。其中,边缘纸张颜色可以作为第三区域中电子书页面纸张颜色,根据该区域的大小和对应的当前电子书页面的位置,绘制相对应的页面内容。第三区域的大小、对应于当前电子书页面的位置、该区域应当显示的页面内容的确定及反向处理、以及第一区域和第二区域的绘制均可由本领域技术人员采用任意适当的手段实现,本申请实施例对此不作限制。绘制完成的第一区域、第二区域和第三区域形成完整的翻页操作过程中的电子书页面呈现效果。
另外,需要说明的是,在翻页操作过程中,第三区域会随着用户的翻页操作而变化,包括但不限于大小的变化、形状的变化等,其在一个翻页操作过程中并不是一成 不变的,图2中的第三区域也仅为示例性说明,实际中,也可能存在矩形或者梯形的第三区域,并且,以C顶点为翻页顶点为例,随着用户从右向左的滑动操作,第三区域将逐渐增大,绘制的页面内容也会逐渐增多。
通过本实施例的电子书页面显示方法,在用户想要对正在阅读的电子书页面尤其是电子书图像页面进行翻页,进行了相应的翻页操作后,电子书阅读应用所在设备在接收到该翻页操作后,会首先获取当前显示的电子书图像页面的页面边缘的纸张颜色以及页面内容,进而以此为依据绘制翻页操作过程中显示的电子书图像页面的翻折部分。与传统的使用固定颜色显示电子书图像页面的翻折部分的方式相比,一方面,边缘纸张颜色作为电子书图像页面颜色的一部分,与电子书图像页面的匹配度更高,颜色搭配也更为协调,有效改进了电子书图像页面的显示效果,提升用户阅读体验;另一方面,与传统的页面颜色分析需要对整个页面的颜色数据进行采集和分析相比,边缘纸张颜色既能有效反映当前的电子书图像页面情况,也大大降低了颜色数据的采集和分析的数据处理量,提升了电子书绘制和显示效率,也进一步提升了用户的阅读体验。
本实施例的电子书页面显示方法可以由任意适当的具有数据处理能力的设备执行,包括但不限于:移动终端、电子书阅读器或台式机等。
实施例二
参照图3,示出了根据本申请实施例二的一种电子书页面显示方法的步骤流程图。
本实施例的电子书页面显示方法包括:
步骤S202:判断当前显示的电子书页面是否为电子书图像页面;若为电子书图像页面,则执行步骤S204;若不为电子书图像页面,则执行步骤S208。
本申请实施例的电子书页面显示方法主要针对电子书图像页面,即,电子书页面内容中包含图像,并且,该图像中存在与电子书页面的边界区域相重合的部分的页面,如,电子书封面,或者电子书内容页面中以图片为背景或者设置有装饰背景的页面,或者,电子书内容页面的边界区域设置有插图的页面等等。
在一种可行方式中,可以根据当前显示的电子书页面的透明度值,判断当前显示的电子书页面是否为电子书图像页面。若透明度值指示为不透明,则可以确定当前显示的电子书页面为电子书图像页面。但不止于此,若虽然透明度值指示为透明,但经进一步判断距离当前显示的电子书页面边缘设定距离内的区域中是否存在图片和/或装饰背景后,确定存在,则可确定当前显示的电子书页面也为电子书图像页面。
这是因为,电子书页面在绘制时,会先进行排版,再确定绘制待呈现元素的方式,然后通过适当的方式渲染绘制。其中,待呈现元素既包括待绘制元素的具体内容,如文字、图片、视频、装饰背景等,也包括绘制待绘制元素的载体,如画板。本申请实施例中,将画板设置为透明。如果电子书页面里存在全屏的图片或者全屏的装饰背景,则结果图表现为全不透明;如果是纯文字则表现为具有部分全透明色值,如,纯文字页面的边界区域表现为透明色。但除此之外,如果存在文字和图片混合排版的情况,比如文字将中间的图片环绕起来,或者上下两部分文字中间设置有位于版心范围内的图片,则电子书页面的边界区域仍表现为透明色。但如果文字和图片混合排版情况下,图片不在版心范围内,且图片的一部分位于页面的边界区域内,则在此情况下,该电子书页面的边界区域中,该图片覆盖的范围内也不透明。这种通过透明度进行判断的 方式,大大提高了确定电子书页面是否为电子书图像页面的效率。但不限于此,其它确定当前显示的电子书页面是否为电子书图像页面的方式也同样适用,如在电子书页面排版过程中分析可视元素区域、根据电子书页面中的图像信息和/或装饰背景信息进行判断等。
步骤S204:确定接收到对当前显示的电子书图像页面的翻页操作后,获取电子书图像页面的边缘纸张颜色和页面内容。
其中,边缘纸张颜色用于指示距离电子书图像页面边缘设定距离内的纸张的颜色。
使用纸张边缘颜色的色值扫描代替传统的全图扫描,可以提高颜色提取和判断的效率。并且,该方式与生活常识里的图书页面边缘即未经印刷的纸张的原理相吻合。可选地,纸张边缘选择距离电子书页面上下左右边界1个像素的区域。
在一种可行方式中,可以通过确定距离电子书图像页面边缘设定距离内的区域;获取所述区域内的像素的像素值;根据获取的像素值确定边缘纸张颜色。以RGB色彩空间为例,每一个像素的像素值都对应有一个颜色,如,RGB(255,255,255)为白色,RGB(0,0,0)为黑色,RGB(255,0,0)为红色等等。获得了区域内像素的像素值,就可以根据这些像素值确定相应的边缘纸张颜色。需要说明的是,以上RGB色彩空间仅为示例性说明,本领域技术人员可以根据实际需要选择相应的色彩空间,如HSV色彩空间、HSL色彩空间等,本申请实施例对此不作限制。
因为纸张颜色可能有多种情况,因此获取到的像素值指示的颜色也可能指示多种颜色情况。在此情况下,一种可行方式中,可以根据获取的像素值确定区域内包含的颜色的数量,进而确定边缘纸张颜色。具体地,在确定时,可以采用以下方式中的至少一种,包括:(1)若所述区域内包含的颜色的数量大于第二设定阈值且小于第三设定阈值,则将所有像素值中,占比最多的像素值对应的颜色确定为待绘制的边缘纸张颜色;其中,第二设定阈值和第三设定阈值均为正整数,第二设定阈值大于1,且第二设定阈值小于第三设定阈值;其中,第二设定阈值和第三设定阈值的具体数值可以由本领域技术人员适当设置,不会使颜色过于混杂即可。例如,第二设定阈值设定为2,第三设定阈值设定为5;再例如,第二设定阈值设定为2,第三设定阈值设定为采样的像素的数量的30%取整等等。例如,若采集了所述区域内共1000个像素的像素值,其中,300个像素的像素值为(255,255,255),200个像素的像素值为(0,0,0),500个像素的像素值为(255,0,0),则可以将占比最多的像素值对应的颜色,即(255,0,0)对应的红色,确定为待绘制的边缘纸张颜色。(2)若所述区域内包含的颜色的数量大于或等于第三设定阈值,则将设定颜色确定为待绘制的边缘纸张颜色。其中,设定颜色也可以由本领域技术人员根据实际情况适当设置,如设置为白色,或者设置为淡米色、淡黄色等。(3)若所述区域内仅包含一种颜色,则可以将该种颜色确定为边缘纸张颜色。
当颜色数量在第二设定阈值和第三设定阈值范围内时,表明当前显示的电子书图像页面中,仅有少数的几种颜色,页面颜色相对干净,此时,使用占比最多的像素值对应的颜色作为边缘纸张颜色,过渡自然,颜色搭配效果好。而当颜色数量大于或等于第三设定阈值时,表明当前显示的电子书图像页面颜色较杂,不容易确定匹配度较好的颜色,而且,杂色容易为用户带来视觉疲劳,仍选用其中占比最多的像素值对应 的颜色也不能达到缓解用户视觉疲劳的效果。因此,若当前显示的电子书图像页面的颜色较为复杂,则可以将设定颜色确定为电子书图像页面的边缘纸张颜色,以为用户带来更好的阅读体验。
在另一种可行方式中,可以根据获取的像素值确定区域内包含的颜色的数量与获取的像素值的数量的比值,进而确定边缘纸张颜色。具体地,在确定时,可以采用以下方式中的至少一种,包括:(1)若所述比值大于第一设定比值且小于第二设定比值,则将所有像素值中,占比最多的像素值对应的颜色确定为待绘制的边缘纸张颜色;其中,第二设定比值大于【1/(获取的像素值的数量)】,且第一设定比值小于第二设定比值;其中,第一设定比值和第二设定比值的具体数值可以由本领域技术人员适当设置,不会使颜色过于混杂即可。(2)若所述区域内包含的颜色的数量与获取的像素值的数量的比值大于或等于第二设定比值,则将设定颜色确定为所述待绘制的边缘纸张颜色。其中,设定颜色也可以由本领域技术人员根据实际情况适当设置,如设置为白色,或者设置为淡米色、淡黄色等。(3)若所述区域内仅包含一种颜色,则可以将该种颜色确定为边缘纸张颜色。
此外,表现为百分数形式的比例也包含在本申请实施例的“比值”范围内。
电子书图像页面的页面内容,包括但不限于图像和/或文字,可以由本领域技术人员采用适当手段获取,本申请实施例对此不作限制。
步骤S206:使用边缘纸张颜色的页面内容,绘制并显示翻页操作所操作的电子书图像页面的翻折部分。
在一种可行方式中,对于电子书图像页面的翻折部分可以采用先在翻折部分绘制页面内容,再在绘制的页面内容之上,将边缘纸张颜色绘制至整个翻折部分的方式实现。先绘制页面内容,再绘制边缘纸张颜色,可以使得绘制效果具有较好的投射效果,更接近于真实的翻页效果。而对于电子书页面的其它部分,包括当前显示的电子书图像页面中除翻折部分之外的部分,以及当前显示的电子书图像页面的下一页面的显示部分均可以由本领域技术人员根据实际情况选择适当的方式绘制实现。在这些部分均绘制完成后,显示呈现最终的绘制结果。
优选地,还可以对绘制的边缘纸张颜色进行降低透明度的处理,即,在绘制的页面内容之上,将边缘纸张颜色绘制至整个翻折部分后,降低绘制的边缘纸张颜色的透明度,以使最终的呈现效果更为接近真实的翻页效果。在一种可选方式中,在降低边缘纸张颜色的透明度时,可以先判断绘制的边缘纸张颜色的亮度值是否小于第一设定阈值,若小于,则降低绘制的边缘纸张颜色的透明度。其中,第一设定阈值可以由本领域技术人员根据实际情况适当设置,如设置为0.2;对边缘纸张颜色降低透明度的幅度也可以由本领域技术人员根据实际情况适当设置,如降低为原透明度的二分之一。在电子书图像页面中,当亮度值小于某一阈值时,颜色的透明度会较高,使得绘制的页面内容有较为清晰的呈现,一方面与实际翻页效果不符,另一方面也影响用户的阅读体验。降低此种情况下的边缘纸张颜色的透明度,以提高用户阅读体验。
本步骤中,对电子书图像页面的翻折部分进行了重点说明,对于除翻折部分之外的其它部分,可以由本领域技术人员采用任意适当方式进行绘制,在此不再赘述。
此外,本实施例中,使用OpenGL进行电子书图像页面的绘制。OpenGL定义了一个跨编程语言、跨平台的编程接口规格的专业的图形程序接口,其与硬件无关,可 以方便地进行2D或3D图形图像的绘制。但不限于OpenGL,其它方式,如Unity或OpenCL等也同样适用。
为使电子书翻页效果与实际翻页效果更为吻合,本实施例在使用OpenGL绘制翻页效果过程还可以借助构建的圆柱模型或圆锥模型,使构建的圆柱模型或圆锥模型与页面的切线与折边EF重合。通过圆柱模型或圆锥模型,实现电子书页面好像绕着一个斜放着的圆柱模型或圆锥模型进行卷边的翻页效果。以下,以构建圆柱模型为例进行说明。
参考图4,图4中,T0为翻页操作的初始操作点,T1为翻页操作的当前操作点,根据T0到T1的翻页操作,形成折边EF。在图2所示界面的基础上,定义平行于边界CD并且经过初始操作点T0的直线与折边EF的交点H为第一中心点,以第一中心点为原点、边界CD所在的方向为X轴的延伸方向、与边界CD相邻的边界DA或BC所在的方向为Y轴的延伸方向建立第一直角坐标系XYZ(如图4中左下角所示)。在该第一直角坐标系XYZ上构建圆柱模型以及与该圆柱模型相切的页面(为便于区分,下文称构建页面),该构建页面与页面ABCD平行。对该圆柱模型及其相切的构建页面进行三维旋转,以使旋转后的圆柱模型(图4中虚线部分所示为圆柱模型截面)与构建页面的切线与折边EF重合。然后,将第三区域对应的页面纹理进行切分和旋转后贴在圆柱模型上。
其中,第三区域对应的页面纹理意指当前电子书图像页面的翻折部分所对应的纹理(包括当前电子书图像页面的图像和边缘纸张颜色)。本实施例中,先在旋转后的圆柱模型上绘制当前电子书图像页面的图像,再在绘制在图像之上绘制边缘纸张颜色。其中,在绘制图像时,假设先将图像切分成多个n×m个小方块图,每个方块图有4个顶点,这4个顶点就是纹理顶点;假设将该图像切分为多个三角形块图,每个三角形块图有3个顶点,这3个顶点就是纹理顶点。可以理解的是,切分的块图面积越小,个数越多(纹理顶点也越多),贴在圆柱模型上的效果就越逼真。其中,纹理如何切分以及切分为多少个块图都可以由本领域技术人员根据实际需要进行设定,本申请实施例对此不作限制。
在进行上述纹理处理时,需要根据第三区域对应的各图像块的纹理顶点在第一直角坐标系内的坐标以及适当的三维旋转公式,计算出各纹理顶点旋转后的坐标。然后,依据旋转后的坐标进行圆柱模型的纹理贴图。
一种可行方式中,可以先根据第三区域对应各图像块的纹理顶点在第一直角坐标系内的坐标,计算在第一直角坐标系旋转为第二直角坐标系X’Y’Z’后各纹理顶点旋转后的坐标,其中,折边EF在第二直角坐标系中的位置相对于折边EF在第一直角坐标系中的位置旋转了(90-a)度,其中a表示当前翻页角度。
如图4中所示,第一直角坐标系以第一中心点H为旋转点、绕Z轴顺时针旋转(90-a)度后,变为第二直角坐标系,第二直角坐标系的原点仍然为第一中心点H,第二直角坐标系与第一直角坐标系中的X轴对应的轴为X’轴,第二直角坐标系与第一直角坐标系中的Y轴对应的轴为Y’轴,第二直角坐标系与第一直角坐标系中的Z轴对应的轴为Z’轴(与Z轴重合)。由于在第一直角坐标系中,圆柱模型与构建页面的切线与折边EF重合,也就是说,圆柱模型与边界CD的夹角为当前翻页角度a,又由于第二直角坐标系相对于第一直角坐标系绕H点顺时针旋转了(90-a)度,因此,圆柱 模型在第二直角坐标系中与Y’轴是重合的,可以说在第二直角坐标系中圆柱模型被“移正”了。同样地,各纹理顶点在进行三维旋转后,也被“移正”,以绘制在“移正”后的圆柱模型上。
与此类似,当使用圆锥模型时,可以对第三区域对应的各图像块的纹理顶点和圆锥模型进行坐标转换处理,转换后的圆锥模型的顶点可以为折边的顶点,如为折边EF的顶点E,进而根据转换后的纹理顶点坐标进行纹理图。其中,坐标转换的具体处理可由本领域技术人员采用适当的数学方式进行,在此不再赘述。
而对于第一区域和第二区域的绘制,则可以由本领域技术人员采用常规手段实现,例如,对于第一区域,先确定区域范围坐标,再获取该坐标范围内的图像的所有像素点的信息,然后在该坐标范围内根据像素点的信息进行图像绘制等;对于第二区域,先确定区域范围坐标,再获取该坐标范围内的图像的所有像素点的信息,和/或,该坐标范围内的文字信息,然后在该坐标范围内根据像素点的信息和/或文字的信息进行绘制等,本申请实施例对第一区域和第二区域的具体绘制方式不作限制。
步骤S208:若所述透明度值指示为透明,且,距离当前显示的电子书页面边缘设定距离内的区域中不存在图片和/或装饰背景,则先在整个翻折部分绘制电子书页面的默认纸张颜色,再在翻折部分绘制电子书页面的页面内容,并显示绘制的结果。
也即,若当前显示的电子书页面不为电子书图像页面,则先在整个翻折部分绘制电子书页面的默认纸张颜色,再在翻折部分绘制电子书页面的页面内容,并显示绘制的结果。例如,当前显示的电子书页面为纯文字页面,或者为图片位于版心范围内的图片和文字混排页面,则使用默认纸张颜色(如羊皮纸颜色)绘制翻折部分,再在其上绘制页面内容,以模仿该种页面的实际翻页效果。可选地,也可以进一步降低绘制的页面内容的透明度,以使模仿效果更好。
通过本实施例,实现了电子书图像页面在翻页过程中的页面投射显示,能够与当前显示的电子书图像页面进行有效的匹配和过渡,改进了电子书图像页面的显示效果,提升用户阅读体验;同时,仅以边缘纸张颜色进行处理,大大降低了颜色数据的采集和分析的数据处理量,提升了电子书图像页面绘制和显示效率,也进一步提升了用户的阅读体验。
本实施例的电子书页面显示方法可以由任意适当的具有数据处理能力的设备执行,包括但不限于:移动终端、电子书阅读器或台式机等。
实施例三
参照图5,示出了根据本申请实施例三的一种电子书页面显示方法的步骤流程图。
本实施例的电子书页面显示方法包括以下步骤:
步骤S302:在接收到对当前显示的电子书图像页面的翻页操作后,获取待显示的页面信息。
其中,待显示的页面信息包括:当前显示的电子书图像页面的页面内容、当前显示的电子书图像页面的边缘纸张颜色、当前显示的电子书图像页面的下一页面的页面内容。其中,边缘纸张颜色用于指示距离电子书图像页面边缘设定距离内的纸张的颜色。设定距离可以由本领域技术人员根据实际情况适当设定,可在电子书图像页面边界小范围区域内取色即可,如,可设定为距离电子书图像页面四边均1个像素的区域等。
步骤S304:使用当前显示的电子书图像页面的边缘纸张颜色和页面内容,绘制电子书显示界面的第三区域;使用当前显示的电子书图像页面的页面内容,绘制电子书显示界面的第一区域;使用当前显示的电子书图像页面的下一页面的页面内容,绘制电子书显示界面的第二区域。
其中,电子书显示界面分为第一区域、第二区域和第三区域,第三区域为翻页操作所操作的电子书图像页面的翻折部分的区域,第一区域为当前显示的电子书图像页面中,未被翻折部分遮挡的区域,第二区域为当前显示的电子书图像页面的下一页面中的被显示区域。
步骤S306:显示绘制结果。
通过本实施例,在用户想要对正在阅读的电子书页面尤其是电子书图像页面进行翻页,进行了相应的翻页操作后,电子书阅读应用会在相应部分进行内容绘制和展示,包括电子书图像页面的翻折部分、未被翻折部分和下一页面的显示部分。其中,对于电子书图像页面的翻折部分,会根据当前显示的电子书图像页面的页面边缘的纸张颜色以及页面内容进行绘制。与传统的使用固定颜色显示电子书图像页面的翻折部分的方式相比,一方面,边缘纸张颜色作为电子书图像页面颜色的一部分,与电子书图像页面的匹配度更高,颜色搭配也更为协调,有效改进了电子书图像页面的显示效果,提升用户阅读体验;另一方面,与传统的页面颜色分析需要对整个页面的颜色数据进行采集和分析相比,边缘纸张颜色既能有效反映当前的电子书图像页面情况,也大大降低了颜色数据的采集和分析的数据处理量,提升了电子书绘制和显示效率,也进一步提升了用户的阅读体验。
本实施例的电子书页面显示方法可以由任意适当的具有数据处理能力的设备执行,包括但不限于:移动终端、电子书阅读器或台式机等。
实施例四
参照图6,示出了根据本申请实施例四的一种电子书页面显示方法的步骤流程图。
本实施例的电子书页面显示方法包括以下步骤:
步骤S402:在接收到对当前显示的电子书图像页面的翻页操作后,获取待显示的页面信息。
其中,待显示的页面信息包括:当前显示的电子书图像页面的页面内容、当前显示的电子书图像页面的边缘纸张颜色、当前显示的电子书图像页面的下一页面的页面内容,其中,边缘纸张颜色用于指示距离电子书图像页面边缘设定距离内的纸张的颜色。
对于当前显示的电子书图像页面的边缘纸张颜色,一种可行的获取方式包括:获取距离电子书图像页面边缘设定距离内的区域中的像素的像素值;根据所述像素值获取当前显示的电子书图像页面的边缘纸张颜色信息。使用纸张边缘颜色的色值扫描代替传统的全图扫描,可以提高颜色提取和判断的效率。并且,该方式与生活常识里的图书页面边缘即未经印刷的纸张的原理相吻合。可选地,纸张边缘选择距离电子书页面上下左右边界1个像素的区域。
因为边缘纸张颜色可能有多种情况,可以针对不同情况确定不同的边缘纸张颜色。因此,在根据所述像素值获取当前显示的电子书图像页面的边缘纸张颜色信息时,可以采用以下方式中的任意一种或几种的组合。具体地,这些方式包括:根据所述像 素值确定距离电子书图像页面边缘设定距离内的区域内包含的颜色的数量;(1)若所述区域内包含的颜色的数量大于第二设定阈值且小于第三设定阈值,则将所有像素值中,占比最多的像素值对应的颜色确定为待绘制的边缘纸张颜色;其中,第二设定阈值和第三设定阈值均为正整数,第二设定阈值大于1,且第二设定阈值小于第三设定阈值,第二设定阈值和第三设定阈值的具体设定可以由本领域技术人员根据实际情况适当设定。(2)若所述区域内包含的颜色的数量大于或等于第三设定阈值,则将设定颜色确定为待绘制的边缘纸张颜色,其中,设定颜色可以由本领域技术人员根据实际情况适当设定,优选地,可设定为白色。(3)若所述区域内仅包含一种颜色,则将该颜色确定为边缘纸张颜色。
在另一种可行方式中,可以根据获取的像素值确定区域内包含的颜色的数量与获取的像素值的数量的比值,进而确定边缘纸张颜色。具体地,在确定时,可以采用以下方式中的至少一种,包括:(1)若所述比值大于第一设定比值且小于第二设定比值,则将所有像素值中,占比最多的像素值对应的颜色确定为待绘制的边缘纸张颜色;其中,第二设定比值大于【1/(获取的像素值的数量)】,且第一设定比值小于第二设定比值;其中,第一设定比值和第二设定比值的具体数值可以由本领域技术人员适当设置,不会使颜色过于混杂即可。(2)若所述区域内包含的颜色的数量与获取的像素值的数量的比值大于或等于第二设定比值,则将设定颜色确定为所述待绘制的边缘纸张颜色。其中,设定颜色也可以由本领域技术人员根据实际情况适当设置,如设置为白色,或者设置为淡米色、淡黄色等。(3)若所述区域内仅包含一种颜色,则可以将该种颜色确定为边缘纸张颜色。
此外,表现为百分数形式的比例也包含在本申请实施例的“比值”范围内。
对于当前显示的电子书图像页面的页面内容和当前显示的电子书图像页面的下一页面的页面内容,可以采用常规获取方式获取。
步骤S404:根据翻页操作的初始操作点和当前操作点确定电子书图像页面的折边;以折边为界,将电子书显示界面划分为初始操作点所在区域和当前操作点所在区域;将初始操作点所在区域作为第二区域;将第二区域相对于折边的轴对称区域作为第三区域;将当前操作点所在区域中,除第三区域外的区域作为第一区域。
翻页过程中的电子书显示界面,在不同区域将显示不同的内容,需要进行区域划分,以便相应内容的绘制和展示。由上述划分可见,第三区域为翻页操作所操作的电子书图像页面的翻折部分的区域,第一区域为当前显示的电子书图像页面中,未被翻折部分遮挡的区域,第二区域为当前显示的电子书图像页面的下一页面中的被显示区域。具体可参照图2中所示的电子书显示界面的第一、第二和第三区域。
步骤S406:使用当前显示的电子书图像页面的边缘纸张颜色和页面内容,绘制电子书显示界面的第三区域;使用当前显示的电子书图像页面的页面内容,绘制电子书显示界面的第一区域;使用当前显示的电子书图像页面的下一页面的页面内容,绘制电子书显示界面的第二区域。
其中,对于第三区域,可以将当前显示的电子书图像页面的页面内容中对应于第三区域的页面内容绘制至第三区域;在绘制的页面内容之上,将边缘纸张颜色绘制至第三区域。
优选地,还可以在绘制的页面内容之上,将边缘纸张颜色绘制至第三区域的步骤 之后,降低绘制的边缘纸张颜色的透明度。
步骤S408:显示绘制结果。
本实施例中,与前述实施例一或二中相同或相似部分描述较为简单,具体实现可参照前述实施例一或二中相应部分实现,在此不再赘述。
通过本实施例,在用户想要对正在阅读的电子书页面尤其是电子书图像页面进行翻页,进行了相应的翻页操作后,电子书阅读应用会在相应部分进行内容绘制和展示,包括电子书图像页面的翻折部分、未被翻折部分和下一页面的显示部分。其中,对于电子书图像页面的翻折部分,会根据当前显示的电子书图像页面的页面边缘的纸张颜色以及页面内容进行绘制。与传统的使用固定颜色显示电子书图像页面的翻折部分的方式相比,一方面,边缘纸张颜色作为电子书图像页面颜色的一部分,与电子书图像页面的匹配度更高,颜色搭配也更为协调,有效改进了电子书图像页面的显示效果,提升用户阅读体验;另一方面,与传统的页面颜色分析需要对整个页面的颜色数据进行采集和分析相比,边缘纸张颜色既能有效反映当前的电子书图像页面情况,也大大降低了颜色数据的采集和分析的数据处理量,提升了电子书绘制和显示效率,也进一步提升了用户的阅读体验。
本实施例的电子书页面显示方法可以由任意适当的具有数据处理能力的设备执行,包括但不限于:移动终端、电子书阅读器或台式机等。
实施例五
参照图7,示出了根据本申请实施例五的一种电子书页面显示装置的结构框图。
本实施例的电子书页面显示装置包括:第一获取模块502,用于确定接收到对当前显示的电子书图像页面的翻页操作后,获取电子书图像页面的边缘纸张颜色和页面内容,其中,边缘纸张颜色用于指示距离电子书图像页面边缘设定距离内的纸张的颜色;绘制显示模块504,用于使用边缘纸张颜色和页面内容,绘制并显示翻页操作所操作的电子书图像页面的翻折部分。
本实施例的电子书页面显示装置用于实现前述方法实施例一或实施例二中相应的电子书页面显示方法,并具有相应的方法实施例的有益效果,在此不再赘述。
实施例六
参照图8,示出了根据本申请实施例六的一种电子书页面显示装置的结构框图。
本实施例的电子书页面显示装置包括:第一获取模块602,用于确定接收到对当前显示的电子书图像页面的翻页操作后,获取电子书图像页面的边缘纸张颜色和页面内容,其中,边缘纸张颜色用于指示距离电子书图像页面边缘设定距离内的纸张的颜色;绘制显示模块604,用于使用边缘纸张颜色和页面内容,绘制并显示翻页操作所操作的电子书图像页面的翻折部分。
可选地,绘制显示模块604包括:第一内容绘制模块6042,用于在电子书图像页面的翻折部分绘制页面内容;第一颜色绘制模块6044,用于在绘制的页面内容之上,将边缘纸张颜色绘制至整个翻折部分;第一显示模块6046,用于显示绘制的结果。
可选地,绘制显示模块604还包括:第一透明度模块6048,用于在第一显示模块6046显示绘制的结果之前,降低绘制的边缘纸张颜色的透明度。
可选地,第一透明度模块6048用于判断绘制的边缘纸张颜色的亮度值是否小于第一设定阈值;若小于,则降低绘制的边缘纸张颜色的透明度。
可选地,第一获取模块602包括:第一接收模块6022,用于确定接收到对当前显示的电子书图像页面的翻页操作;第一内容获取模块6024,用于获取电子书图像页面的页面内容;第一像素获取模块6026,用于确定距离电子书图像页面边缘设定距离内的区域;获取所述区域内的像素的像素值;第一颜色确定模块6028,用于根据获取的像素值确定边缘纸张颜色。
可选地,第一颜色确定模块6028包括:第一数量确定单元60282,用于根据获取的像素值确定所述区域内包含的颜色的数量;第一确定单元60284,用于若所述区域内包含的颜色的数量大于第二设定阈值且小于第三设定阈值,则将所有像素值中,占比最多的像素值对应的颜色确定为待绘制的边缘纸张颜色;其中,第二设定阈值和第三设定阈值均为正整数,第二设定阈值大于1,且第二设定阈值小于第三设定阈值。或者,或者,第一数量确定单元60282,用于根据获取的像素值确定所述区域内包含的颜色的数量与获取的像素值的数量的比值;第一确定单元60284,用于若所述比值大于第一设定比值且小于第二设定比值,则将所有像素值中,占比最多的像素值对应的颜色确定为待绘制的边缘纸张颜色;其中,第二设定比值大于【1/(获取的像素值的数量)】,且第一设定比值小于第二设定比值。
可选地,第一颜色确定模块6028还包括:第二确定单元60286,用于若所述区域内包含的颜色的数量大于或等于第三设定阈值,则将设定颜色确定为待绘制的边缘纸张颜色。或者,第二确定单元60286,用于若所述区域内包含的颜色的数量与获取的像素值的数量的比值大于或等于第二设定比值,则将设定颜色确定为所述待绘制的边缘纸张颜色。
可选地,第一颜色确定模块6028还包括:第三确定单元60288,用于若所述区域内仅包含一种颜色,则将所述一种颜色确定为边缘纸张颜色。
可选地,本实施例的电子书页面显示装置还包括:图像页面确定模块606,用于在第一获取模块602确定接收到对当前显示的电子书图像页面的翻页操作之前,根据当前显示的电子书页面的透明度值,判断当前显示的电子书页面是否为电子书图像页面;若透明度值指示为不透明,则确定当前显示的电子书页面为电子书图像页面。
可选地,图像页面确定模块606还用于若透明度值指示为透明,则判断距离当前显示的电子书页面边缘设定距离内的区域中是否存在图片和/或装饰背景;若存在,则确定当前显示的电子书页面为电子书图像页面。
可选地,本实施例的电子书页面显示装置还包括:非图像页面处理模块608,用于若透明度值指示为透明,且,距离当前显示的电子书页面边缘设定距离内的区域中不存在图片和/或装饰背景,则先在整个翻折部分绘制电子书页面的默认纸张颜色,再在翻折部分绘制电子书页面的页面内容,并显示绘制的结果。
可选地,非图像页面处理模块608还用于在翻折部分绘制电子书页面的页面内容之后,在显示绘制的结果之前,降低页面内容的透明度。
本实施例的电子书页面显示装置用于实现前述方法实施例一或实施例二中相应的电子书页面显示方法,并具有相应的方法实施例的有益效果,在此不再赘述。
实施例七
参照图9,示出了根据本申请实施例七的一种终端设备的结构示意图,本申请具体实施例并不对终端设备的具体实现做限定。
如图9所示,该终端设备可以包括:第一处理器(processor)702、第一通信接口(Communications Interface)704、第一存储器(memory)706、以及第一通信总线708。其中:
第一处理器702、第一通信接口704、以及第一存储器706通过第一通信总线708完成相互间的通信。
第一通信接口704,用于与其它设备比如其它终端设备或服务器等的网元通信。
第一处理器702,用于执行程序710,具体可以执行上述电子书页面显示方法实施例中的相关步骤。
具体地,程序710可以包括程序代码,该程序代码包括计算机操作指令。
第一处理器702可能是中央处理器CPU,或者是特定集成电路ASIC(Application Specific Integrated Circuit),或者是被配置成实施本申请实施例的一个或多个集成电路。终端设备包括的一个或多个处理器,可以是同一类型的处理器,如一个或多个CPU;也可以是不同类型的处理器,如一个或多个CPU以及一个或多个ASIC。
第一存储器706,用于存储程序710,以及电子书页面的相关数据。第一存储器706可能包含高速RAM存储器,也可能还包括非易失性存储器(non-volatile memory),例如至少一个磁盘存储器。
程序710具体可以用于使得第一处理器702执行以下操作:确定接收到对当前显示的电子书图像页面的翻页操作后,获取电子书图像页面的边缘纸张颜色和页面内容,其中,边缘纸张颜色用于指示距离电子书图像页面边缘设定距离内的纸张的颜色;使用边缘纸张颜色和页面内容,绘制并显示翻页操作所操作的电子书图像页面的翻折部分。
在一种可选的实施方式中,程序710还用于使得第一处理器702在使用边缘纸张颜色和页面内容,绘制并显示翻页操作所操作的电子书图像页面的翻折部分时:在电子书图像页面的翻折部分绘制页面内容;在绘制的页面内容之上,将边缘纸张颜色绘制至整个翻折部分;显示绘制的结果。
在一种可选的实施方式中,程序710还用于使得第一处理器702在显示绘制的结果之前,降低绘制的边缘纸张颜色的透明度。
在一种可选的实施方式中,程序710还用于使得第一处理器702在降低绘制的边缘纸张颜色的透明度时:判断绘制的边缘纸张颜色的亮度值是否小于第一设定阈值;若小于,则降低绘制的边缘纸张颜色的透明度。
在一种可选的实施方式中,程序710还用于使得第一处理器702在获取电子书图像页面的边缘纸张颜色时:确定距离电子书图像页面边缘设定距离内的区域;获取所述区域内的像素的像素值;根据获取的像素值确定边缘纸张颜色。
在一种可选的实施方式中,程序710还用于使得第一处理器702在根据获取的像素值确定边缘纸张颜色时:根据获取的像素值确定所述区域内包含的颜色的数量;若所述区域内包含的颜色的数量大于第二设定阈值且小于第三设定阈值,则将所有像素值中,占比最多的像素值对应的颜色确定为待绘制的边缘纸张颜色;其中,第二设定阈值和第三设定阈值均为正整数,第二设定阈值大于1,且第二设定阈值小于第三设定阈值;或者,根据获取的像素值确定所述区域内包含的颜色的数量与获取的像素值的数量的比值;若所述比值大于第一设定比值且小于第二设定比值,则将所有像素值 中,占比最多的像素值对应的颜色确定为待绘制的边缘纸张颜色;其中,第二设定比值大于【1/(获取的像素值的数量)】,且第一设定比值小于第二设定比值。
在一种可选的实施方式中,程序710还用于使得第一处理器702在若所述区域内包含的颜色的数量大于或等于所述第三设定阈值时,则将设定颜色确定为待绘制的边缘纸张颜色;或者,若所述区域内包含的颜色的数量与获取的像素值的数量的比值大于或等于第二设定比值,则将设定颜色确定为所述待绘制的边缘纸张颜色。
在一种可选的实施方式中,程序710还用于使得第一处理器702在若所述区域内仅包含一种颜色时,则将该种颜色确定为边缘纸张颜色。
在一种可选的实施方式中,程序710还用于使得第一处理器702在在确定接收到对当前显示的电子书图像页面的翻页操作之前,根据当前显示的电子书页面的透明度值,判断当前显示的电子书页面是否为电子书图像页面;若透明度值指示为不透明,则确定当前显示的电子书页面为电子书图像页面。
在一种可选的实施方式中,程序710还用于使得第一处理器702在若透明度值指示为透明时,则判断距离当前显示的电子书页面边缘设定距离内的区域中是否存在图片和/或装饰背景;若存在,则确定当前显示的电子书页面为电子书图像页面。
在一种可选的实施方式中,程序710还用于使得第一处理器702在若透明度值指示为透明,且,距离当前显示的电子书页面边缘设定距离内的区域中不存在图片和/或装饰背景时,则先在整个翻折部分绘制电子书页面的默认纸张颜色,再在翻折部分绘制电子书页面的页面内容,并显示绘制的结果。
在一种可选的实施方式中,程序710还用于使得第一处理器702在翻折部分绘制电子书页面的页面内容之后,在显示绘制的结果之前,降低页面内容的透明度。
程序710中各步骤的具体实现可以参见上述电子书页面显示方法实施例中的相应步骤和单元中对应的描述,在此不赘述。所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的设备和模块的具体工作过程,可以参考前述方法实施例中的对应过程描述,在此不再赘述。
通过本实施例的终端设备,一方面,有效改进了电子书页面的显示效果,提升用户阅读体验;另一方面,也大大降低了颜色数据的采集和分析的数据处理量,提升了电子书绘制和显示效率,也进一步提升了用户的阅读体验。
实施例八
参照图10,示出了根据本申请实施例八的一种电子书页面显示装置的结构框图。
本实施例的电子书页面显示装置包括:第二获取模块802,用于在接收到对当前显示的电子书图像页面的翻页操作后,获取待显示的页面信息,其中,待显示的页面信息包括:当前显示的电子书图像页面的页面内容、当前显示的电子书图像页面的边缘纸张颜色、当前显示的电子书图像页面的下一页面的页面内容,其中,边缘纸张颜色用于指示距离电子书图像页面边缘设定距离内的纸张的颜色;绘制模块804,用于使用当前显示的电子书图像页面的边缘纸张颜色和页面内容,绘制电子书显示界面的第三区域;使用当前显示的电子书图像页面的页面内容,绘制电子书显示界面的第一区域;使用当前显示的电子书图像页面的下一页面的页面内容,绘制电子书显示界面的第二区域;第二显示模块806,用于显示绘制结果;其中,第三区域为翻页操作所操作的电子书图像页面的翻折部分的区域,第一区域为当前显示的电子书图像页面 中,未被翻折部分遮挡的区域,第二区域为当前显示的电子书图像页面的下一页面中的被显示区域。
本实施例的电子书页面显示装置用于实现前述方法实施例三或实施例四中相应的电子书页面显示方法,并具有相应的方法实施例的有益效果,在此不再赘述。
实施例九
参照图11,示出了根据本申请实施例九的一种电子书页面显示装置的结构框图。
本实施例的电子书页面显示装置包括:第二获取模块902,用于在接收到对当前显示的电子书图像页面的翻页操作后,获取待显示的页面信息,其中,待显示的页面信息包括:当前显示的电子书图像页面的页面内容、当前显示的电子书图像页面的边缘纸张颜色、当前显示的电子书图像页面的下一页面的页面内容,其中,边缘纸张颜色用于指示距离电子书图像页面边缘设定距离内的纸张的颜色;绘制模块904,用于使用当前显示的电子书图像页面的边缘纸张颜色和页面内容,绘制电子书显示界面的第三区域;使用当前显示的电子书图像页面的页面内容,绘制电子书显示界面的第一区域;使用当前显示的电子书图像页面的下一页面的页面内容,绘制电子书显示界面的第二区域;第二显示模块906,用于显示绘制结果;其中,第三区域为所述翻页操作所操作的电子书图像页面的翻折部分的区域,第一区域为当前显示的电子书图像页面中,未被翻折部分遮挡的区域,第二区域为当前显示的电子书图像页面的下一页面中的被显示区域。
可选地,绘制模块904用于在使用当前显示的电子书图像页面的边缘纸张颜色和页面内容,绘制电子书显示界面的第三区域时:将当前显示的电子书图像页面的页面内容中对应于第三区域的页面内容绘制至第三区域;在绘制的页面内容之上,将边缘纸张颜色绘制至第三区域。
可选地,绘制模块904还用于在绘制的页面内容之上,将边缘纸张颜色绘制至第三区域之后,降低绘制的边缘纸张颜色的透明度。
可选地,第二获取模块902包括:第二接收模块9022,用于接收到对当前显示的电子书图像页面的翻页操作;第二内容获取模块9024,用于获取待显示的页面信息中的当前显示的电子书图像页面的页面内容、和当前显示的电子书图像页面的下一页面的页面内容;第二像素获取模块9026,用于获取距离电子书图像页面边缘设定距离内的区域中的像素的像素值;第二颜色确定模块9028,用于根据所述像素值获取当前显示的电子书图像页面的边缘纸张颜色信息。
可选地,第二颜色确定模块9028包括:第二数量确定单元90282,用于根据所述像素值确定所述区域内包含的颜色的数量;第四确定单元90284,用于若所述区域内包含的颜色的数量大于第二设定阈值且小于第三设定阈值,则将所有像素值中,占比最多的像素值对应的颜色确定为待绘制的边缘纸张颜色;其中,第二设定阈值和第三设定阈值均为正整数,第二设定阈值大于1,且第二设定阈值小于所述第三设定阈值。或者,第二数量确定单元90282,用于根据获取的像素值确定所述区域内包含的颜色的数量与获取的像素值的数量的比值;第四确定单元90284,用于若所述比值大于第一设定比值且小于第二设定比值,则将所有像素值中,占比最多的像素值对应的颜色确定为待绘制的边缘纸张颜色;其中,第二设定比值大于【1/(获取的像素值的数量)】,且第一设定比值小于第二设定比值。
可选地,第二颜色确定模块9028还包括:第五确定单元90286,用于若所述区域内包含的颜色的数量大于或等于第三设定阈值,则将设定颜色确定为待绘制的边缘纸张颜色。或者,第五确定单元90286,用于若所述区域内包含的颜色的数量与获取的像素值的数量的比值大于或等于第二设定比值,则将设定颜色确定为所述待绘制的边缘纸张颜色。
可选地,第二颜色确定模块9028还包括:第六确定单元90288,用于若所述区域内仅包含一种颜色,则将该种颜色确定为边缘纸张颜色。
可选地,本实施例的电子书页面显示装置还包括:区域划分模块908,用于在绘制模块904使用当前显示的电子书图像页面的边缘纸张颜色和页面内容,绘制电子书显示界面的第三区域之前,根据翻页操作的初始操作点和当前操作点确定电子书图像页面的折边;以所述折边为界,将电子书显示界面划分为初始操作点所在区域和当前操作点所在区域;将初始操作点所在区域作为第二区域;将第二区域相对于所述折边的轴对称区域作为第三区域;将当前操作点所在区域中,除第三区域外的区域作为第一区域。
本实施例的电子书页面显示装置用于实现前述方法实施例三或实施例四中相应的电子书页面显示方法,并具有相应的方法实施例的有益效果,在此不再赘述。
实施例十
参照图12,示出了根据本申请实施例十的一种终端设备的结构示意图,本申请具体实施例并不对终端设备的具体实现做限定。
如图12所示,该终端设备可以包括:第二处理器(processor)1002、第二通信接口(Communications Interface)1004、第二存储器(memory)1006、以及第二通信总线1008。其中:
第二处理器1002、第二通信接口1004、以及第二存储器1006通过第二通信总线1008完成相互间的通信。
第二通信接口1004,用于与其它设备比如其它终端设备或服务器等的网元通信。
第二处理器1002,用于执行程序1010,具体可以执行上述电子书页面显示方法实施例中的相关步骤。
具体地,程序1010可以包括程序代码,该程序代码包括计算机操作指令。
第二处理器1002可能是中央处理器CPU,或者是特定集成电路ASIC(Application Specific Integrated Circuit),或者是被配置成实施本申请实施例的一个或多个集成电路。终端设备包括的一个或多个处理器,可以是同一类型的处理器,如一个或多个CPU;也可以是不同类型的处理器,如一个或多个CPU以及一个或多个ASIC。
第二存储器1006,用于存储程序1010,以及电子书页面的相关数据。第二存储器1006可能包含高速RAM存储器,也可能还包括非易失性存储器(non-volatile memory),例如至少一个磁盘存储器。
程序1010具体可以用于使得第二处理器1002执行以下操作:在接收到对当前显示的电子书图像页面的翻页操作后,获取待显示的页面信息,其中,待显示的页面信息包括:当前显示的电子书图像页面的页面内容、当前显示的电子书图像页面的边缘纸张颜色、当前显示的电子书图像页面的下一页面的页面内容,其中,边缘纸张颜色用于指示距离电子书图像页面边缘设定距离内的纸张的颜色;使用当前显示的电子书 图像页面的边缘纸张颜色和页面内容,绘制电子书显示界面的第三区域;使用当前显示的电子书图像页面的页面内容,绘制电子书显示界面的第一区域;使用当前显示的电子书图像页面的下一页面的页面内容,绘制电子书显示界面的第二区域;显示绘制结果;其中,第三区域为翻页操作所操作的电子书图像页面的翻折部分的区域,第一区域为当前显示的电子书图像页面中,未被翻折部分遮挡的区域,第二区域为当前显示的电子书图像页面的下一页面中的被显示区域。
在一种可选的实施方式中,程序1010还用于使得第二处理器1002在使用当前显示的电子书图像页面的边缘纸张颜色和页面内容,绘制电子书显示界面的第三区域时:将当前显示的电子书图像页面的页面内容中对应于第三区域的页面内容绘制至第三区域;在绘制的页面内容之上,将边缘纸张颜色绘制至第三区域。
在一种可选的实施方式中,程序1010还用于使得第二处理器1002在绘制的页面内容之上,将边缘纸张颜色绘制至第三区域之后,降低绘制的边缘纸张颜色的透明度。
在一种可选的实施方式中,程序1010还用于使得第二处理器1002在获取待显示的页面信息时:获取距离电子书图像页面边缘设定距离内的区域中的像素的像素值;根据所述像素值获取当前显示的电子书图像页面的边缘纸张颜色信息。
在一种可选的实施方式中,程序1010还用于使得第二处理器1002在根据所述像素值获取当前显示的电子书图像页面的边缘纸张颜色信息时:根据所述像素值确定所述区域内包含的颜色的数量;若所述区域内包含的颜色的数量大于第二设定阈值且小于第三设定阈值,则将所有像素值中,占比最多的像素值对应的颜色确定为待绘制的边缘纸张颜色;其中,第二设定阈值和第三设定阈值均为正整数,第二设定阈值大于1,且第二设定阈值小于第三设定阈值;或者,根据获取的像素值确定所述区域内包含的颜色的数量与获取的像素值的数量的比值;若所述比值大于第一设定比值且小于第二设定比值,则将所有像素值中,占比最多的像素值对应的颜色确定为待绘制的边缘纸张颜色;其中,第二设定比值大于【1/(获取的像素值的数量)】,且第一设定比值小于第二设定比值。
在一种可选的实施方式中,程序1010还用于使得第二处理器1002在若所述区域内包含的颜色的数量大于或等于所述第三设定阈值时,将设定颜色确定为待绘制的边缘纸张颜色;或者,若所述区域内包含的颜色的数量与获取的像素值的数量的比值大于或等于第二设定比值,则将设定颜色确定为所述待绘制的边缘纸张颜色。
在一种可选的实施方式中,程序1010还用于使得第二处理器1002在若所述区域内仅包含一种颜色时,则将该种颜色确定为边缘纸张颜色。
在一种可选的实施方式中,程序1010还用于使得第二处理器1002在使用当前显示的电子书图像页面的边缘纸张颜色和页面内容,绘制电子书显示界面的第三区域之前,根据翻页操作的初始操作点和当前操作点确定电子书图像页面的折边;以所述折边为界,将电子书显示界面划分为初始操作点所在区域和当前操作点所在区域;将初始操作点所在区域作为第二区域;将第二区域相对于所述折边的轴对称区域作为第三区域;将当前操作点所在区域中,除第三区域外的区域作为第一区域。
程序1010中各步骤的具体实现可以参见上述电子书页面显示方法实施例中的相应步骤和单元中对应的描述,在此不赘述。所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的设备和模块的具体工作过程,可以参考前述方法实 施例中的对应过程描述,在此不再赘述。
通过本实施例的终端设备,一方面,有效改进了电子书页面的显示效果,提升用户阅读体验;另一方面,也大大降低了颜色数据的采集和分析的数据处理量,提升了电子书绘制和显示效率,也进一步提升了用户的阅读体验。
需要指出,根据实施的需要,可将本申请实施例中描述的各个部件/步骤拆分为更多部件/步骤,也可将两个或多个部件/步骤或者部件/步骤的部分操作组合成新的部件/步骤,以实现本申请实施例的目的。
上述根据本申请实施例的方法可在硬件、固件中实现,或者被实现为可存储在记录介质(诸如CD ROM、RAM、软盘、硬盘或磁光盘)中的应用或计算机代码,或者被实现通过网络下载的原始存储在远程记录介质或非暂时机器可读介质中并将被存储在本地记录介质中的计算机代码,从而在此描述的方法可被存储在使用通用计算机、专用处理器或者可编程或专用硬件(诸如ASIC或FPGA)的记录介质上的这样的应用处理。可以理解,计算机、处理器、微处理器控制器或可编程硬件包括可存储或接收应用或计算机代码的存储组件(例如,RAM、ROM、闪存等),当所述应用或计算机代码被计算机、处理器或硬件访问且执行时,实现在此描述的电子书页面显示方法。此外,当通用计算机访问用于实现在此示出的电子书页面显示的代码时,代码的执行将通用计算机转换为用于执行在此示出的电子书页面显示的专用计算机。
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及方法步骤,能够以电子硬件、或者计算机应用和电子硬件的结合来实现。这些功能究竟以硬件还是应用方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请实施例的范围。
以上实施方式仅用于说明本申请实施例,而并非对本申请实施例的限制,有关技术领域的普通技术人员,在不脱离本申请实施例的精神和范围的情况下,还可以做出各种变化和变型,因此所有等同的技术方案也属于本申请实施例的范畴,本申请实施例的专利保护范围应由权利要求限定。

Claims (42)

  1. 一种电子书页面显示方法,包括:
    确定接收到对当前显示的电子书图像页面的翻页操作后,获取所述电子书图像页面的边缘纸张颜色和页面内容,其中,所述边缘纸张颜色用于指示距离所述电子书图像页面边缘设定距离内的纸张的颜色;
    使用所述边缘纸张颜色和所述页面内容,绘制并显示所述翻页操作所操作的电子书图像页面的翻折部分。
  2. 根据权利要求1所述的方法,其中,所述使用所述边缘纸张颜色和所述页面内容,绘制并显示所述翻页操作所操作的电子书图像页面的翻折部分的步骤包括:
    在所述电子书图像页面的翻折部分绘制所述页面内容;
    在绘制的所述页面内容之上,将所述边缘纸张颜色绘制至整个翻折部分;
    显示绘制的结果。
  3. 根据权利要求2所述的方法,其中,在所述显示绘制的结果的步骤之前,所述方法还包括:
    降低绘制的所述边缘纸张颜色的透明度。
  4. 根据权利要求3所述的方法,其中,所述降低绘制的所述边缘纸张颜色的透明度的步骤包括:
    判断绘制的所述边缘纸张颜色的亮度值是否小于第一设定阈值;
    若小于,则降低绘制的所述边缘纸张颜色的透明度。
  5. 根据权利要求1-4任一项所述的方法,其中,所述获取所述电子书图像页面的边缘纸张颜色的步骤包括:
    确定距离所述电子书图像页面边缘设定距离内的区域;
    获取所述区域内的像素的像素值;
    根据获取的像素值确定所述边缘纸张颜色。
  6. 根据权利要求5所述的方法,其中,所述根据获取的像素值确定所述边缘纸张颜色的步骤包括:
    根据获取的像素值确定所述区域内包含的颜色的数量;若所述区域内包含的颜色的数量大于第二设定阈值且小于第三设定阈值,则将所有像素值中,占比最多的像素值对应的颜色确定为待绘制的边缘纸张颜色;其中,所述第二设定阈值和所述第三设定阈值均为正整数,所述第二设定阈值大于1,且所述第二设定阈值小于所述第三设定阈值;
    或者,
    根据获取的像素值确定所述区域内包含的颜色的数量与获取的像素值的数量的比值;若所述比值大于第一设定比值且小于第二设定比值,则将所有像素值中,占比最多的像素值对应的颜色确定为待绘制的边缘纸张颜色;其中,所述第二设定比值大于1/获取的像素值的数量,且所述第一设定比值小于所述第二设定比值。
  7. 根据权利要求6所述的方法,其中,所述方法还包括:
    若所述区域内包含的颜色的数量大于或等于所述第三设定阈值,则将设定颜色确定为所述待绘制的边缘纸张颜色;
    或者,
    若所述区域内包含的颜色的数量与获取的像素值的数量的比值大于或等于所述第二设定比值,则将设定颜色确定为所述待绘制的边缘纸张颜色。
  8. 根据权利要求6所述的方法,其中,所述方法还包括:
    若所述区域内仅包含一种颜色,则将所述一种颜色确定为所述边缘纸张颜色。
  9. 根据权利要求1-4任一项所述的方法,其中,在所述确定接收到对当前显示的电子书图像页面的翻页操作的步骤之前,所述方法还包括:
    根据当前显示的电子书页面的透明度值,判断当前显示的电子书页面是否为电子书图像页面;
    若所述透明度值指示为不透明,则确定当前显示的电子书页面为电子书图像页面。
  10. 根据权利要求9所述的方法,其中,所述方法还包括:
    若所述透明度值指示为透明,则判断距离当前显示的电子书页面边缘设定距离内的区域中是否存在图片和/或装饰背景;
    若存在,则确定当前显示的电子书页面为电子书图像页面。
  11. 根据权利要求10所述的方法,其中,所述方法还包括:
    若所述透明度值指示为透明,且,距离当前显示的电子书页面边缘设定距离内的区域中不存在图片和/或装饰背景,则先在整个翻折部分绘制所述电子书页面的默认纸张颜色,再在所述翻折部分绘制所述电子书页面的页面内容,并显示绘制的结果。
  12. 根据权利要求11所述的方法,其中,在所述翻折部分绘制所述电子书页面的页面内容的步骤之后,在所述显示绘制的结果的步骤之前,所述方法还包括:
    降低所述页面内容的透明度。
  13. 一种电子书页面显示方法,包括:
    在接收到对当前显示的电子书图像页面的翻页操作后,获取待显示的页面信息,其中,所述待显示的页面信息包括:当前显示的电子书图像页面的页面内容、当前显示的电子书图像页面的边缘纸张颜色、当前显示的电子书图像页面的下一页面的页面内容,其中,所述边缘纸张颜色用于指示距离电子书图像页面边缘设定距离内的纸张的颜色;
    使用当前显示的电子书图像页面的边缘纸张颜色和页面内容,绘制电子书显示界面的第三区域;使用当前显示的电子书图像页面的页面内容,绘制电子书显示界面的第一区域;使用当前显示的电子书图像页面的下一页面的页面内容,绘制电子书显示界面的第二区域;
    显示绘制结果;
    其中,所述第三区域为所述翻页操作所操作的电子书图像页面的翻折部分的区域,所述第一区域为当前显示的电子书图像页面中,未被所述翻折部分遮挡的区域,所述第二区域为当前显示的电子书图像页面的下一页面中的被显示区域。
  14. 根据权利要求13所述的方法,其中,所述使用当前显示的电子书图像页面的边缘纸张颜色和页面内容,绘制电子书显示界面的第三区域的步骤包括:
    将当前显示的电子书图像页面的页面内容中对应于所述第三区域的页面内容绘制至所述第三区域;
    在绘制的所述页面内容之上,将所述边缘纸张颜色绘制至所述第三区域。
  15. 根据权利要求14所述的方法,其中,在绘制的所述页面内容之上,将所述边缘纸张颜色绘制至所述第三区域的步骤之后,所述方法还包括:
    降低绘制的所述边缘纸张颜色的透明度。
  16. 根据权利要求13-15任一项所述的方法,其中,所述获取待显示的页面信息的步骤包括:
    获取距离电子书图像页面边缘设定距离内的区域中的像素的像素值;
    根据所述像素值获取当前显示的电子书图像页面的边缘纸张颜色信息。
  17. 根据权利要求16所述的方法,其中,根据所述像素值获取当前显示的电子书图像页面的边缘纸张颜色信息的步骤包括:
    根据所述像素值确定所述区域内包含的颜色的数量;若所述区域内包含的颜色的数量大于第二设定阈值且小于第三设定阈值,则将所有像素值中,占比最多的像素值对应的颜色确定为待绘制的边缘纸张颜色;其中,所述第二设定阈值和所述第三设定阈值均为正整数,所述第二设定阈值大于1,且所述第二设定阈值小于所述第三设定阈值;
    或者,
    根据获取的像素值确定所述区域内包含的颜色的数量与获取的像素值的数量的比值;若所述比值大于第一设定比值且小于第二设定比值,则将所有像素值中,占比最多的像素值对应的颜色确定为待绘制的边缘纸张颜色;其中,所述第二设定比值大于1/获取的像素值的数量,且所述第一设定比值小于所述第二设定比值。
  18. 根据权利要求17所述的方法,其中,所述方法还包括:
    若所述区域内包含的颜色的数量大于或等于所述第三设定阈值,则将设定颜色确定为所述待绘制的边缘纸张颜色;
    或者,
    若所述区域内包含的颜色的数量与获取的像素值的数量的比值大于或等于所述第二设定比值,则将设定颜色确定为所述待绘制的边缘纸张颜色。
  19. 根据权利要求17所述的方法,其中,所述方法还包括:
    若所述区域内仅包含一种颜色,则将所述一种颜色确定为所述边缘纸张颜色。
  20. 根据权利要求13-15任一项所述的方法,其中,在所述使用当前显示的电子书图像页面的边缘纸张颜色和页面内容,绘制电子书显示界面的第三区域的步骤之前,所述方法还包括:
    根据所述翻页操作的初始操作点和当前操作点确定所述电子书图像页面的折边;
    以所述折边为界,将所述电子书显示界面划分为初始操作点所在区域和当前操作点所在区域;
    将所述初始操作点所在区域作为所述第二区域;将所述第二区域相对于所述折边的轴对称区域作为第三区域;将所述当前操作点所在区域中,除所述第三区域外的区域作为第一区域。
  21. 一种电子书页面显示装置,包括:
    第一获取模块,用于确定接收到对当前显示的电子书图像页面的翻页操作后,获取所述电子书图像页面的边缘纸张颜色和页面内容,其中,所述边缘纸张颜色用于指示距离所述电子书图像页面边缘设定距离内的纸张的颜色;
    绘制显示模块,用于使用所述边缘纸张颜色和所述页面内容,绘制并显示所述翻页操作所操作的电子书图像页面的翻折部分。
  22. 根据权利要求21所述的装置,其中,所述绘制显示模块包括:
    第一内容绘制模块,用于在所述电子书图像页面的翻折部分绘制所述页面内容;
    第一颜色绘制模块,用于在绘制的所述页面内容之上,将所述边缘纸张颜色绘制至整个翻折部分;
    第一显示模块,用于显示绘制的结果。
  23. 根据权利要求22所述的装置,其中,所述绘制显示模块还包括:
    第一透明度模块,用于在所述显示绘制的结果之前,降低绘制的所述边缘纸张颜色的透明度。
  24. 根据权利要求23所述的装置,其中,所述第一透明度模块,用于判断绘制的所述边缘纸张颜色的亮度值是否小于第一设定阈值;若小于,则降低绘制的所述边缘纸张颜色的透明度。
  25. 根据权利要求21-24任一项所述的装置,其中,所述第一获取模块包括:
    第一接收模块,用于确定接收到对当前显示的电子书图像页面的翻页操作;
    第一内容获取模块,用于获取所述电子书图像页面的页面内容;
    第一像素获取模块,用于确定距离所述电子书图像页面边缘设定距离内的区域;
    获取所述区域内的像素的像素值;
    第一颜色确定模块,用于根据获取的像素值确定所述边缘纸张颜色。
  26. 根据权利要求25所述的装置,其中,所述第一颜色确定模块包括:
    第一数量确定单元,用于根据获取的像素值确定所述区域内包含的颜色的数量;第一确定单元,用于若所述区域内包含的颜色的数量大于第二设定阈值且小于第三设定阈值,则将所有像素值中,占比最多的像素值对应的颜色确定为待绘制的边缘纸张颜色;其中,所述第二设定阈值和所述第三设定阈值均为正整数,所述第二设定阈值大于1,且所述第二设定阈值小于所述第三设定阈值;
    或者,
    第一数量确定单元,用于根据获取的像素值确定所述区域内包含的颜色的数量与获取的像素值的数量的比值;第一确定单元,用于若所述比值大于第一设定比值且小于第二设定比值,则将所有像素值中,占比最多的像素值对应的颜色确定为待绘制的边缘纸张颜色;其中,所述第二设定比值大于1/获取的像素值的数量,且所述第一设定比值小于所述第二设定比值。
  27. 根据权利要求26所述的装置,其中,所述第一颜色确定模块还包括:
    第二确定单元,用于若所述区域内包含的颜色的数量大于或等于所述第三设定阈值,则将设定颜色确定为所述待绘制的边缘纸张颜色;
    或者,
    第二确定单元,用于若所述区域内包含的颜色的数量与获取的像素值的数量的比值大于或等于所述第二设定比值,则将设定颜色确定为所述待绘制的边缘纸张颜色。
  28. 根据权利要求26所述的装置,其中,所述第一颜色确定模块还包括:
    第三确定单元,用于若所述区域内仅包含一种颜色,则将所述一种颜色确定为所述边缘纸张颜色。
  29. 根据权利要求21-24任一项所述的装置,其中,所述装置还包括:
    图像页面确定模块,用于在所述第一获取模块确定接收到对当前显示的电子书图像页面的翻页操作之前,根据当前显示的电子书页面的透明度值,判断当前显示的电子书页面是否为电子书图像页面;若所述透明度值指示为不透明,则确定当前显示的电子书页面为电子书图像页面。
  30. 根据权利要求29所述的装置,其中,所述图像页面确定模块,还用于若所述透明度值指示为透明,则判断距离当前显示的电子书页面边缘设定距离内的区域中是否存在图片和/或装饰背景;若存在,则确定当前显示的电子书页面为电子书图像页面。
  31. 根据权利要求30所述的装置,其中,所述装置还包括:
    非图像页面处理模块,用于若所述透明度值指示为透明,且,距离当前显示的电子书页面边缘设定距离内的区域中不存在图片和/或装饰背景,则先在整个翻折部分绘制所述电子书页面的默认纸张颜色,再在所述翻折部分绘制所述电子书页面的页面内容,并显示绘制的结果。
  32. 根据权利要求31所述的装置,其中,所述非图像页面处理模块,还用于在所述翻折部分绘制所述电子书页面的页面内容之后,在所述显示绘制的结果之前,降低所述页面内容的透明度。
  33. 一种电子书页面显示装置,包括:
    第二获取模块,用于在接收到对当前显示的电子书图像页面的翻页操作后,获取待显示的页面信息,其中,所述待显示的页面信息包括:当前显示的电子书图像页面的页面内容、当前显示的电子书图像页面的边缘纸张颜色、当前显示的电子书图像页面的下一页面的页面内容,其中,所述边缘纸张颜色用于指示距离电子书图像页面边缘设定距离内的纸张的颜色;
    绘制模块,用于使用当前显示的电子书图像页面的边缘纸张颜色和页面内容,绘制电子书显示界面的第三区域;使用当前显示的电子书图像页面的页面内容,绘制电子书显示界面的第一区域;使用当前显示的电子书图像页面的下一页面的页面内容,绘制电子书显示界面的第二区域;
    第二显示模块,用于显示绘制结果;
    其中,所述第三区域为所述翻页操作所操作的电子书图像页面的翻折部分的区域,所述第一区域为当前显示的电子书图像页面中,未被所述翻折部分遮挡的区域,所述第二区域为当前显示的电子书图像页面的下一页面中的被显示区域。
  34. 根据权利要求33所述的装置,其中,所述绘制模块,用于在使用当前显示的电子书图像页面的边缘纸张颜色和页面内容,绘制电子书显示界面的第三区域时:将当前显示的电子书图像页面的页面内容中对应于所述第三区域的页面内容绘制至所述第三区域;在绘制的所述页面内容之上,将所述边缘纸张颜色绘制至所述第三区域。
  35. 根据权利要求34所述的装置,其中,所述绘制模块,还用于在绘制的所述页面内容之上,将所述边缘纸张颜色绘制至所述第三区域之后,降低绘制的所述边缘纸张颜色的透明度。
  36. 根据权利要求33-35任一项所述的装置,其中,所述第二获取模块包括:
    第二接收模块,用于接收到对当前显示的电子书图像页面的翻页操作;
    第二内容获取模块,用于获取待显示的页面信息中的当前显示的电子书图像页面的页面内容、和当前显示的电子书图像页面的下一页面的页面内容;
    第二像素获取模块,用于获取距离电子书图像页面边缘设定距离内的区域中的像素的像素值;
    第二颜色确定模块,用于根据所述像素值获取当前显示的电子书图像页面的边缘纸张颜色信息。
  37. 根据权利要求36所述的装置,其中,所述第二颜色确定模块包括:
    第二数量确定单元,用于根据所述像素值确定所述区域内包含的颜色的数量;第四确定单元,用于若所述区域内包含的颜色的数量大于第二设定阈值且小于第三设定阈值,则将所有像素值中,占比最多的像素值对应的颜色确定为待绘制的边缘纸张颜色;其中,所述第二设定阈值和所述第三设定阈值均为正整数,所述第二设定阈值大 于1,且所述第二设定阈值小于所述第三设定阈值;
    或者,
    第二数量确定单元,用于根据获取的像素值确定所述区域内包含的颜色的数量与获取的像素值的数量的比值;第四确定单元,用于若所述比值大于第一设定比值且小于第二设定比值,则将所有像素值中,占比最多的像素值对应的颜色确定为待绘制的边缘纸张颜色;其中,所述第二设定比值大于1/获取的像素值的数量,且所述第一设定比值小于所述第二设定比值。
  38. 根据权利要求37所述的装置,其中,所述第二颜色确定模块还包括:
    第五确定单元,用于若所述区域内包含的颜色的数量大于或等于所述第三设定阈值,则将设定颜色确定为所述待绘制的边缘纸张颜色;
    或者,
    第五确定单元,用于若所述区域内包含的颜色的数量与获取的像素值的数量的比值大于或等于所述第二设定比值,则将设定颜色确定为所述待绘制的边缘纸张颜色。
  39. 根据权利要求37所述的装置,其中,所述第二颜色确定模块还包括:
    第六确定单元,用于若所述区域内仅包含一种颜色,则将所述一种颜色确定为所述边缘纸张颜色。
  40. 根据权利要求33-35任一项所述的装置,其中,所述装置还包括:
    区域划分模块,用于在所述绘制模块使用当前显示的电子书图像页面的边缘纸张颜色和页面内容,绘制电子书显示界面的第三区域之前,根据所述翻页操作的初始操作点和当前操作点确定所述电子书图像页面的折边;以所述折边为界,将所述电子书显示界面划分为初始操作点所在区域和当前操作点所在区域;将所述初始操作点所在区域作为所述第二区域;将所述第二区域相对于所述折边的轴对称区域作为第三区域;将所述当前操作点所在区域中,除所述第三区域外的区域作为第一区域。
  41. 一种终端设备,包括:第一处理器、第一存储器、第一通信接口和第一通信总线,所述第一处理器、所述第一存储器和所述第一通信接口通过所述第一通信总线完成相互间的通信;
    所述第一存储器用于存放至少一可执行指令,所述可执行指令使所述第一处理器执行如权利要求1-12任一项所述的电子书页面显示方法对应的操作。
  42. 一种终端设备,包括:第二处理器、第二存储器、第二通信接口和第二通信总线,所述第二处理器、所述第二存储器和所述第二通信接口通过所述第二通信总线完成相互间的通信;
    所述第二存储器用于存放至少一可执行指令,所述可执行指令使所述第二处理器执行如权利要求13-20任一项所述的电子书页面显示方法对应的操作。
PCT/CN2017/089262 2017-03-30 2017-06-20 电子书页面显示方法、装置和终端设备 WO2018176653A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US16/498,346 US11054969B2 (en) 2017-03-30 2017-06-20 Method and device for displaying page of electronic book, and terminal device

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710202333.6 2017-03-30
CN201710202333.6A CN108664454B (zh) 2017-03-30 2017-03-30 电子书页面显示方法、装置和终端设备

Publications (1)

Publication Number Publication Date
WO2018176653A1 true WO2018176653A1 (zh) 2018-10-04

Family

ID=63675166

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/089262 WO2018176653A1 (zh) 2017-03-30 2017-06-20 电子书页面显示方法、装置和终端设备

Country Status (3)

Country Link
US (1) US11054969B2 (zh)
CN (1) CN108664454B (zh)
WO (1) WO2018176653A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112925594A (zh) * 2019-12-05 2021-06-08 北京沃东天骏信息技术有限公司 页面数据的处理及校验方法和装置

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP7172030B2 (ja) * 2017-12-06 2022-11-16 富士フイルムビジネスイノベーション株式会社 表示装置及びプログラム
CN110083290B (zh) * 2019-03-29 2020-07-10 北京点众科技股份有限公司 一种处理翻页的方法和设备
US11474781B2 (en) * 2020-06-10 2022-10-18 Asianlink Technology Incorporation Electronic book system using electromagnetic energy to detect page numbers
CN112433657B (zh) * 2020-11-23 2022-03-29 掌阅科技股份有限公司 电子书的仿真翻页方法、电子设备及计算机存储介质
CN113010252B (zh) * 2021-03-19 2022-08-09 掌阅科技股份有限公司 应用页面的展示方法、电子设备及存储介质
CN114047997A (zh) * 2021-11-29 2022-02-15 掌阅科技股份有限公司 翻页方法、电子设备及存储介质
CN115409930B (zh) * 2022-10-31 2023-02-14 深圳市趣推科技有限公司 电子页面的卷轴模拟方法、装置、设备及存储介质
CN116755595B (zh) * 2023-08-11 2023-10-27 江苏中威科技软件系统有限公司 一种基于通过内容与页面边框的距离动态翻页效果的方法

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101256466A (zh) * 2008-02-29 2008-09-03 鹏智科技(深圳)有限公司 一种可体现电子文档翻页效果的电子装置及方法
CN101256467A (zh) * 2008-02-29 2008-09-03 鹏智科技(深圳)有限公司 一种可体现电子文档翻页效果的电子装置及其方法
CN104156144A (zh) * 2013-05-14 2014-11-19 腾讯科技(深圳)有限公司 电子文档翻页效果实现方法及装置
US20160085433A1 (en) * 2014-09-23 2016-03-24 Samsung Electronics Co., Ltd. Apparatus and Method for Displaying Preference for Contents in Electronic Device

Family Cites Families (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5900877A (en) * 1995-05-15 1999-05-04 Sybase, Inc. Method and apparatus for multilevel software controls
JP2001265481A (ja) * 2000-03-21 2001-09-28 Nec Corp ページ情報表示方法及び装置並びにページ情報表示用プログラムを記憶した記憶媒体
JP4783254B2 (ja) * 2005-12-15 2011-09-28 株式会社リコー ユーザインタフェース装置、画像形成装置、画像表示方法、およびその方法をコンピュータに実行させるプログラム
US8499251B2 (en) * 2009-01-07 2013-07-30 Microsoft Corporation Virtual page turn
CN102385473A (zh) * 2010-09-02 2012-03-21 腾讯科技(深圳)有限公司 页面切换方法和装置
JP5179559B2 (ja) * 2010-11-12 2013-04-10 シャープ株式会社 画像処理システムを制御する制御装置、画像形成装置、画像読取装置、制御方法、画像処理プログラム及びコンピュータ読み取り可能な記録媒体
US9007405B1 (en) * 2011-03-28 2015-04-14 Amazon Technologies, Inc. Column zoom
CN102609179A (zh) * 2011-12-12 2012-07-25 鸿富锦精密工业(深圳)有限公司 可模拟真实翻页效果的电子装置
KR20130114336A (ko) * 2012-04-09 2013-10-17 삼성전자주식회사 단말기에서 페이지 표시 방법 및 장치
US20140067551A1 (en) * 2012-08-29 2014-03-06 Dex One Digital, Inc. Method and system for providing an online marker indicative of advertisement spend
US20140195890A1 (en) * 2013-01-09 2014-07-10 Amazon Technologies, Inc. Browser interface for accessing supplemental content associated with content pages
US10108308B2 (en) * 2013-11-25 2018-10-23 Rakuten Kobo Inc. Sensing user input to change attributes of rendered content
CN106775548B (zh) * 2016-11-25 2018-02-23 北京小米移动软件有限公司 页面处理方法及装置

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101256466A (zh) * 2008-02-29 2008-09-03 鹏智科技(深圳)有限公司 一种可体现电子文档翻页效果的电子装置及方法
CN101256467A (zh) * 2008-02-29 2008-09-03 鹏智科技(深圳)有限公司 一种可体现电子文档翻页效果的电子装置及其方法
CN104156144A (zh) * 2013-05-14 2014-11-19 腾讯科技(深圳)有限公司 电子文档翻页效果实现方法及装置
US20160085433A1 (en) * 2014-09-23 2016-03-24 Samsung Electronics Co., Ltd. Apparatus and Method for Displaying Preference for Contents in Electronic Device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112925594A (zh) * 2019-12-05 2021-06-08 北京沃东天骏信息技术有限公司 页面数据的处理及校验方法和装置

Also Published As

Publication number Publication date
US20200042146A1 (en) 2020-02-06
CN108664454A (zh) 2018-10-16
US11054969B2 (en) 2021-07-06
CN108664454B (zh) 2020-09-11

Similar Documents

Publication Publication Date Title
WO2018176653A1 (zh) 电子书页面显示方法、装置和终端设备
US11107185B2 (en) Automatic image inpainting using local patch statistics
CN105138317B (zh) 用于终端设备的窗口显示处理方法及装置
US9176748B2 (en) Creating presentations using digital media content
GB2559446A (en) Generating a three-dimensional model from a scanned object
US8572501B2 (en) Rendering graphical objects based on context
CN112433657B (zh) 电子书的仿真翻页方法、电子设备及计算机存储介质
JP4748980B2 (ja) 三次元電子ドキュメントに注釈を付けるためのシステム及び方法
CN109739372B (zh) 用于手写输入设备的图形绘制方法及手写阅读设备
JP2012203458A (ja) 画像処理装置及びプログラム
CN107154063A (zh) 图像展示区域的形状设置方法及装置
CN112433796B (zh) 电子书的仿真翻页方法、电子设备及计算机存储介质
WO2020001022A1 (zh) 图片展示方法、计算设备及计算机存储介质
CN110457102B (zh) 可视对象的模糊方法、渲染方法及计算设备
US20130215045A1 (en) Stroke display method of handwriting input and electronic device
WO2022105514A1 (zh) 电子书的仿真翻页方法、电子设备及计算机存储介质
CN106971370B (zh) 一种基于图片作为背景画平面矢量图的系统及方法
CN106599175B (zh) 网页元素的显示处理方法及装置
JP5893142B2 (ja) 画像処理装置および画像処理方法
US10725636B2 (en) Modification, manipulation and rendering of object attributes
US9218342B2 (en) Conversion of a document while retaining a format of an element of the document
US10989600B2 (en) Automated methods and systems to fill background and interstitial space in a visual object layout
US11233920B1 (en) Transforming document elements for modified document layouts
TW466454B (en) Overcast processing of graphics character
US7605947B2 (en) Making electronic ink universally legible

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17903342

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17903342

Country of ref document: EP

Kind code of ref document: A1