CN107239247A - Electronic equipment and its content display method, device and storage medium - Google Patents

Electronic equipment and its content display method, device and storage medium Download PDF

Info

Publication number
CN107239247A
CN107239247A CN201710390698.6A CN201710390698A CN107239247A CN 107239247 A CN107239247 A CN 107239247A CN 201710390698 A CN201710390698 A CN 201710390698A CN 107239247 A CN107239247 A CN 107239247A
Authority
CN
China
Prior art keywords
bitmap
display
content
display screen
typesetting
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201710390698.6A
Other languages
Chinese (zh)
Other versions
CN107239247B (en
Inventor
张银利
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Alibaba China Co Ltd
Original Assignee
Guangzhou Alibaba Literature Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Alibaba Literature Information Technology Co Ltd filed Critical Guangzhou Alibaba Literature Information Technology Co Ltd
Priority to CN201710390698.6A priority Critical patent/CN107239247B/en
Publication of CN107239247A publication Critical patent/CN107239247A/en
Priority to PCT/CN2018/086853 priority patent/WO2018219140A1/en
Application granted granted Critical
Publication of CN107239247B publication Critical patent/CN107239247B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • G06F3/147Digital output to display device ; Cooperation and interconnection of the display device with other functional units using display panels

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Controls And Circuits For Display Device (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses a kind of electronic equipment and its content display method, device and storage medium.This method includes:Size based on display screen creates basic bitmap, and in response to personal settings of the user to display screen, carries out typesetting to the content for needing to show on basic bitmap and render, and bitmap is rendered with obtain showing on the display screen.And when user changes personal settings, erasing previously renders the display content on bitmap, recovers basic bitmap, rendered to re-use basic bitmap progress typesetting.Thus, to lift the utilization rate of bitmap, to reduce the consumption of internal memory, experience effect of the lifting user to electronic equipment.

Description

Electronic equipment and its content display method, device and storage medium
Technical field
The present invention relates to display technology field, more particularly to a kind of electronic equipment and its content display method, device and one Plant non-transitory machinable medium.
Background technology
At present, the electronic product of electronic product on the market, especially giant-screen, such as large-size smartphone, flat board electricity Brain etc., it is most all to support the personal settings such as portrait layout, transverse screen, full frame.
To improve in user experience, existing scheme, electronic product is set to:For these personal settings and The change of setting, obtains the display screen size of electronic product, and new bitmap is created come typesetting and wash with watercolours based on display screen size Dye needs the content shown, and is shown to user.The shortcoming of this scheme is, after these settings are changed every time, is required for creating New bitmap, figure in situ is destroyed, if without figure in situ is destroyed in time, frequently operation can bring the problem of internal memory overflows, and be Consumer's Experience electronic product brings bad experience effect.
Therefore, there is still a need for a kind of content displaying scheme for the electronic equipment that can solve the problem that above mentioned problem.
The content of the invention
It is an object of the invention to provide the content display method of a kind of electronic equipment and device, in order to lift the profit of bitmap With rate, memory consumption, usage experience of the lifting user to electronic product are reduced.
According to an aspect of the invention, there is provided the content display method of a kind of electronic equipment, the display of electronic equipment Screen has two kinds of display patterns, i.e. transverse screen display pattern and portrait layout display pattern, and this method can include:Bitmap creates step Suddenly, the size based on display screen, establishment electronic equipment renders the basic bitmap required for the page, and basic bitmap corresponds to display One kind in the transverse screen display pattern and portrait layout display pattern of screen;Setting steps, receive personalization of the user to display screen Set, personal settings include the display pattern of display screen;Typesetting rendering step, in response to individual character of the user to display screen Change and set, typesetting is carried out to the content for needing to show on basic bitmap and rendered, to obtain rendering bitmap, wherein, work as individual character When the display pattern display pattern corresponding from basic bitmap that change is set is different, in the way of 90 ° clockwise or counterclockwise Typesetting is carried out to the content for needing to show;Step is shown, displaying on the display screen renders bitmap, wherein, work as personal settings Display pattern it is different from the display pattern of basic bitmap when, bitmap will be rendered and revolved with the direction opposite with typesetting rendering step Turn 90 °.
Thus, the display pattern based on display screen, typesetting and wash with watercolours are carried out on basic bitmap to the content for needing to show Dye, the content for needing to show is shown in the desired mode of user to user individual, lifts Consumer's Experience.
Preferably, typesetting rendering step can also include:Set in response to receiving user's personalization new to display screen Put, the previous display content rendered on bitmap of erasing, to recover basic bitmap, so as to based on new personal settings, in base Typesetting is carried out to the content for needing to show on this bitmap and rendered, to obtain rendering bitmap.
Thus, based on personal settings of the user to display screen, without creating new bitmap, and in same basic bitmap It is upper to carry out personalized typesetting and render, the utilization rate of bitmap is greatly lifted, to avoid constantly creating bitmap and destroy bitmap The problem of being overflowed to the internal memory that electronic product is brought.
Preferably, displaying step can also include:By it is postrotational render bitmap and move on display screen show suitable for it The position shown.
Thus, it is possible to intactly show the content for needing to show to user in position, the experience effect of user is ensured Really.
Preferably, user also includes the size of content display region and its relative to aobvious to the personal settings of display screen The precalculated position of display screen curtain, in typesetting rendering step, in the part of the dimension limitation by content display region of basic bitmap On bitmap, typesetting is carried out to the content for needing to show and rendered, to obtain rendering bitmap, which part bitmap passes through typesetting and wash with watercolours Turn into part after dye and render bitmap.Displaying step also includes:According to the size of content display region in bitmap is rendered interception portion Divide and render bitmap, bitmap is rendered with pre-position exposition on the display screen.
Thus, it is possible to which the ratio setting based on content display region on the display screen, is shown in the desired mode of user Display content.
According to another aspect of the present invention, additionally provide the content display of a kind of electronic equipment, electronic equipment it is aobvious Display screen curtain has two kinds of display patterns, i.e. transverse screen display pattern and portrait layout display pattern, and the device can include:Bitmap creates mould Block, for the size based on display screen, establishment electronic equipment renders the basic bitmap required for the page, and basic bitmap corresponds to One kind in the transverse screen display pattern and portrait layout display pattern of display screen;Setup module, for receiving user to display screen Personal settings, personal settings include the display pattern of display screen;Typesetting rendering module, in response to user to aobvious The personal settings of display screen curtain, carry out typesetting to the content for needing to show on basic bitmap and render, to obtain rendering bitmap, Wherein, when the display pattern of personal settings display pattern corresponding from basic bitmap is different, to revolve clockwise or counterclockwise The mode for turning 90 ° carries out typesetting to the content for needing to show;Display module, bitmap is rendered for showing on the display screen, its In, when the display pattern of personal settings is different from the display pattern of basic bitmap, bitmap will be rendered to render with typesetting Opposite direction is rotated by 90 ° in journey.
Preferably, typesetting rendering module can be also used for:Set in response to receiving user's personalization new to display screen Put, the previous display content rendered on bitmap of erasing, to recover basic bitmap, so as to based on new personal settings, in base Typesetting is carried out to the content for needing to show on this bitmap and rendered, to obtain rendering bitmap.
Preferably, display module can be also used for:By it is postrotational render bitmap and move on display screen show suitable for it The position shown.
Preferably, user also includes the size of content display region and its relative to aobvious to the personal settings of display screen The precalculated position of display screen curtain, Partial Bitmap of the typesetting rendering module in the dimension limitation by content display region of basic bitmap On, typesetting is carried out to the content for needing to show and rendered, to obtain rendering bitmap, which part bitmap is after typesetting and rendering Bitmap is rendered as part, display module is additionally operable to:Part wash with watercolours is intercepted in bitmap is rendered according to the size of content display region Bitmap is contaminated, bitmap is rendered with pre-position exposition on the display screen.
According to another aspect of the invention, a kind of electronic equipment is additionally provided, including:Display screen;Processor;And deposit Reservoir, is stored thereon with executable code, and when executable code is executed by processor, the electronics for making computing device above-mentioned is set Standby content display method.
According to another aspect of the invention, a kind of non-transitory machinable medium is additionally provided, is stored thereon with Executable code, when computing device of the executable code by electronic equipment, makes the above-mentioned electronic equipment of computing device Content display method.
By means of the invention it is possible to the basic bitmap of display pattern establishment of the display screen for electronic equipment, and in response to User carries out typesetting to the content for needing to show on basic bitmap and rendered to the personal settings of display screen, to be lifted The utilization rate of bitmap, to reduce the consumption of internal memory, lifts the experience effect of electronic equipment.
Brief description of the drawings
By the way that disclosure illustrative embodiments are described in more detail with reference to accompanying drawing, the disclosure above-mentioned and its Its purpose, feature and advantage will be apparent, wherein, in disclosure illustrative embodiments, identical reference number Typically represent same parts.
Fig. 1 shows the schematic block diagram of electronic equipment according to an embodiment of the invention.
Fig. 2 shows the indicative flowchart of content display method according to an embodiment of the invention.
Fig. 3 shows the indicative flowchart of content display method according to another embodiment of the present invention.
Fig. 4 shows the indicative flowchart of the content display method according to further embodiment of this invention.
Fig. 5 shows the schematic block diagram of content display according to an embodiment of the invention.
Fig. 6 shows an application examples according to the present invention.
Embodiment
The preferred embodiment of the disclosure is more fully described below with reference to accompanying drawings.Although showing the disclosure in accompanying drawing Preferred embodiment, however, it is to be appreciated that may be realized in various forms the disclosure without the embodiment party that should be illustrated here Formula is limited.On the contrary, these embodiments are provided so that the disclosure is more thorough and complete, and can be by the disclosure Scope intactly conveys to those skilled in the art.
As it was previously stated, to lift the utilization rate of bitmap, and reduce the consumption of internal memory, experience of the lifting user to electronic equipment Effect, the present invention proposes a kind of electronic equipment and its content display method and device.It is detailed below with reference to drawings and Examples Technical scheme is described.
Fig. 1 shows the schematic block diagram of electronic equipment according to an embodiment of the invention.
As shown in figure 1, the electronic equipment of the present invention can include display screen, processor and memory.
Display screen has a size (only considering two-dimensional herein), respectively the height dimension corresponding to height and right It should can be the same or different in the width dimensions of width, the numerical value of the two sizes.
Different according to the difference of dimensional values and the mode shown to user, the display pattern of display screen can include Transverse screen display pattern and portrait layout display pattern.Wherein, during transverse screen display pattern, the numerical value of height dimension is less than the number of width dimensions Value, during portrait layout display pattern, the numerical value of height dimension is more than the numerical value of width dimensions.
The conventional display pattern of the display screen of some electronic equipments (such as smart mobile phone, tablet personal computer) is portrait layout Display pattern, the conventional display pattern of the display screen of some electronic equipments (such as notebook computer) is transverse screen display pattern, User can manually or automatically change the display pattern of display screen as needed, and the processor of electronic equipment can be in response to The change of display pattern, correctly shows the content for needing to show to user.
Can be stored with executable code on memory, and processor can perform the executable code.Work as executable code When being executed by processor, make computing device according to the content display method of the electronic equipment of the present invention.
Present disclosure display methods will be described in detail with reference to accompanying drawing 2-4 and embodiment as follows.
Fig. 2 shows the indicative flowchart of content display method according to an embodiment of the invention.
As shown in Fig. 2 in step S210 (bitmap foundation step), the size based on display screen creates electronic equipment wash with watercolours The basic bitmap required for the page is contaminated, wherein, the transverse screen display pattern and portrait layout that basic bitmap corresponds to display screen show mould One kind of formula.
As it was previously stated, the display screen of electronic equipment can have conventional display pattern, such as portrait layout of smart mobile phone Display, the transverse screen of notebook computer show that conventional display pattern corresponds to the size of display screen.
Basic bitmap can be created according to the size of display screen, so that basic bitmap corresponds to the normal of display screen Advise display pattern (one kind in the transverse screen display pattern and portrait layout display pattern of display screen).
When conventional display pattern is that portrait layout is shown, the height dimension numerical value of display screen is more than width dimensions numerical value, with The width dimensions of display screen are used as the height of basic bitmap using the height dimension of display screen as the width numerical value of basic bitmap Number of degrees value, so that basic bitmap corresponds to the portrait layout display pattern of display screen.For example, the size in display screen is 1080* When 1920 (width * height), the size of basic bitmap is also 1080*1920.
When conventional display pattern is that transverse screen is shown, the height dimension numerical value of display screen is less than width dimensions numerical value, with The width dimensions of display screen are used as the height of basic bitmap using the height dimension of display screen as the width numerical value of basic bitmap Number of degrees value, so that basic bitmap corresponds to the transverse screen display pattern of display screen.For example, the size in display screen is 1920* When 1080 (width * height), the size of basic bitmap is also 1920*1080.
Thus, the size of basic bitmap and the size of display screen are consistent, to cause basic bit figure and display screen phase Match somebody with somebody, the content on basic bitmap can correct on the display screen, intactly be shown.
In step S220 (setting steps), personal settings of the user to display screen are received, personal settings include aobvious The display pattern of display screen curtain.
User can refer to the producer of electronic equipment or the user of electronic equipment.Personal settings can be with It is the conventional display pattern of display screen, for example, the transverse screen of computer is shown, the portrait layout of smart mobile phone is shown etc.;Can also be Display pattern (the different display screen of display pattern corresponding from basic bitmap of display screen after user's change personal settings The display pattern of curtain).
Personal settings can be user input or selection or electronic equipment in response to user to electronic equipment Operation automatically determine, for example, user's manual rotation electronic equipment, electronic equipment automatically determines the display mould of display screen Formula.
In step S230 (typesetting rendering step), in response to personal settings of the user to display screen, in basic bitmap On the content that needs to show typesetting and render, to obtain rendering bitmap.
The content of display can include one or more of combination in word, image, image.
When the display pattern of personal settings display pattern corresponding with basic bitmap is identical, for example, basic bitmap pair The display pattern answered is that portrait layout is shown, the display pattern of personal settings also shows for portrait layout.Now, directly on basic bitmap Typesetting is carried out to the content for needing to show and rendered, to obtain rendering bitmap.
When the display pattern of personal settings display pattern corresponding from basic bitmap is different, for example, basic bitmap pair The display pattern answered is that portrait layout is shown, the display pattern of personal settings shows for transverse screen.Now, to revolve clockwise or counterclockwise The mode for turning 90 ° carries out typesetting to the content for needing to show on basic bitmap and rendered.
The direction of rotation rotated clockwise or counterclockwise can be the display pattern according to personal settings relative to base What the direction of rotation of the display pattern of this bitmap was determined.Shown for example, the conventional display pattern of mobile phone is portrait layout, its lower edges It is to determine, when it rotates to be transverse screen display, there are two kinds of spinning solutions, according to corresponding spinning solution, determine that typesetting is rendered Direction of rotation correspond respectively to clockwise or counterclockwise so that direction that typesetting is rendered and the display pattern phase of display screen Matching.
In step S240 (displaying step), displaying on the display screen renders bitmap.
When the display pattern of personal settings is identical with the display pattern of basic bitmap, directly show on the display screen Render bitmap.
When the display pattern of personal settings is different from the display pattern of basic bitmap, will render bitmap with typesetting wash with watercolours Opposite direction is rotated by 90 ° in dye step.For example, being to turn clockwise 90 ° when the typesetting in typesetting rendering step renders direction When, the direction of rotation for rendering bitmap is 90 ° of rotate counterclockwise;It is rotation counterclockwise when the typesetting in typesetting rendering step renders direction When turning 90 °, render the direction of rotation of bitmap to turn clockwise 90 °.
Thus, the display that the display content on bitmap is matched with the display pattern with display screen is rendered to enable Mode is shown.
It should be appreciated that the step of above method, particularly step S210 and step S220, its order can be unfixed , i.e., step S220 setting steps can also be first carried out, then perform step S210 bitmap foundation step.
Furthermore, it is contemplated that user can repeatedly change the personal settings of display screen, if electronic equipment is connecing every time Receive and bitmap is all rebuild after new personal settings, figure in situ is destroyed, then can bring the problem of internal memory overflows.Therefore, originally It is open also to propose to enable the scheme that bitmap is recycled, in order in new personal settings and previous personal settings Display pattern when differing, reuse basic bitmap, to improve the utilization rate of bitmap, reduce memory consumption, lift user Experience.
Fig. 3 shows the indicative flowchart of content display method according to another embodiment of the present invention.
As shown in figure 3, in step S310, the size based on display screen, establishment electronic equipment is rendered required for the page Basic bitmap, one kind that basic bitmap corresponds in the transverse screen display pattern and portrait layout display pattern of display screen.
In step S320, the current personal settings to display screen of user are received, wherein, current personal settings bag The display pattern of display screen is included, current Personalized to be set to new personal settings, the display with previous personal settings Pattern is differed.
In step S330, in response to current personal settings, judge to whether there is display content on basic bitmap.
There is the content for needing to show if judged result is yes in step S330, i.e., on basic bitmap, then into step S340;If judged result is no, i.e., display content is not present on basic bitmap, then is directly entered step S350.
In step S340, in response to current personal settings, the previous display content rendered on bitmap of erasing, with extensive This bitmap of complex radical, in order to reuse basic bitmap, then enters back into step S350.
In step 350, in response to current personal settings, typesetting is carried out to the content for needing to show on basic bitmap With render, to obtain rendering bitmap.
Here, current personal settings can be the display pattern that display pattern corresponding from basic bitmap is different, It can be the display pattern with the display pattern identical personal settings of basic bitmap.
When the display pattern of current personal settings display pattern corresponding with basic bitmap is identical, directly in basic bit Typesetting is carried out to the content for needing to show on figure and rendered, to obtain rendering bitmap.
When the display pattern of current personal settings display pattern corresponding from basic bitmap is different, in response to current Personal settings, carry out typesetting to the content for needing to show in the way of 90 ° clockwise or counterclockwise and render, to obtain Render bitmap.
In step S360, displaying on the display screen renders bitmap.
When the display pattern of current personal settings display pattern corresponding with basic bitmap is identical, directly in display screen Displaying renders bitmap on curtain.
When the display pattern of current personal settings display pattern corresponding from basic bitmap is different, will render bitmap with The direction opposite with typesetting rendering step is rotated by 90 °, and is set so as to render the corresponding display pattern of bitmap with current Personalized Display pattern it is identical.
When user browses on the display screen renders bitmap and display content thereon, if to the individual character of display screen Change setting to be changed, then can be with return to step S320, to be again user for the new personal settings after change Render bitmap.
Thus, based on basic bitmap, it is necessary to which the content of display can be with the display pattern identical side with personal settings Formula is shown, and reduces memory problem, while improving the experience effect of user.
In addition, as above referring to figs. 2 and 3 described, in actual applications, user is carried out after personal settings operation, The display pattern of new personal settings may be identical with the display pattern of previous personal settings, can also differ, no Same situation may cause different displaying results.Therefore in above-mentioned method flow, judgment step can also be increased, so as to In the exhibition method that display content is accurately determined based on new personal settings.
Fig. 4 shows the indicative flowchart of the content display method according to further embodiment of this invention, illustrated therein is Above-mentioned judgment step.
As shown in figure 4, respectively to be performed with the step S310 shown in Fig. 3 and step S320 identical modes in step S410 Bitmap foundation step and step S420 setting steps.
In step S430, in response to receiving personal settings of the user to display screen, current personalization is judged Whether the display pattern of setting is identical with the display pattern of previous personal settings.If so, then entering step S440;If it is not, Then enter step S450.
In step S440, continue to show the content for needing to show on the display screen by former (previous) display pattern.If working as The preceding content for needing to show is identical with former display content, then can directly show former display content.If being currently needed for the interior of display Hold and differed with former display content, then can wipe the former display content rendered on bitmap, then based on former display pattern basic Typesetting renders the content for being currently needed for display on bitmap.
In step S450, judge to whether there is display content on basic bitmap.If so, then entering step S460, if it is not, then It is directly entered step S470.
In step S460, (currently) personal settings new to display screen in response to receiving user, erasing is previous The display content rendered on bitmap, to recover basic bitmap, then enter back into step S470.
In step S470, judging the display pattern display pattern corresponding with basic bitmap of current personal settings is It is no identical.If so, then entering step S480, if it is not, then entering step S485.
In step S480, typesetting is carried out directly on basic bitmap and is rendered, obtains rendering bitmap.
In step S490, displaying on the display screen renders bitmap.
In step S485, based on new personal settings, to needing display in the way of 90 ° clockwise or counterclockwise Content typesetting and render.
In step S495, bitmap will be rendered and be rotated by 90 ° with the direction opposite with step S485, and opened up on the display screen Show and render bitmap.
In step S490 and step S495, during user is browsing and renders bitmap and display content thereon, Personal settings are made that with change, then can with return to step S420, in order to receive new personal settings again, with Display pattern corresponding to new personal settings shows the content of needs display to user, to improve the utilization rate of bitmap, subtracts The consumption of few internal memory.
Due to during displaying, based on the different point of rotation (for example, rendering the center of bitmap, rendering bitmap Drift angle etc.) the obtained position for rendering bitmap difference is rotated, the position and display screen for rendering bitmap are mismatched, and are presented on display Display content on screen may be incomplete or incorrect.And hence it is also possible to which the postrotational bitmap that renders is moved into display screen It is suitable to the position of its display on curtain, in order to show.
The content display region of bitmap can be full screen display on the display screen, non-can also be displayed in full screen.For not It is suitable to render the position difference that bitmap is shown on same dispaly state (full screen display or non-full screen display), display screen.
In the case of full screen display, it can translate and render edge that bitmap makes to render bitmap after rotation and display screen Edge matches.In the case of non-full screen display, it can translate and render bitmap and make to render the display content of bitmap after rotation aobvious The center of display screen curtain or the displaying of specified other positions.Wherein, rendering bitmap can be in display screen identical plane Laterally or longitudinally translate, the distance of translation be able to can be translated based on being determined suitable for its position shown with ensuring to render bitmap To the position for being suitable to its display.
Thus, rendering bitmap can correctly show in the correct position of display screen, ensure the experience effect of user.
As it was previously stated, showing the content for needing to show at the content display region of display screen, content display region can With all displays on the display screen, can also partly it show.Therefore, user can also wrap to the personal settings of display screen Include the size of content display region and its precalculated position relative to display screen.
The size of content display region can be less than or equal to the size of display screen, and (size of basic bitmap is equal to aobvious Display screen curtain stock size) preliminary dimension.For example, conventional display pattern is the smart mobile phone that portrait layout is shown, it is assumed that its is basic The size of bitmap is 1080*1920 (width * and height), if informing is also shown on the display screen, and the height of informing Degree is 48, then the width of content display region is 1080, is highly 1920-48, i.e., 1872.Similarly, show when being changed to transverse screen And when there is informing, the width of content display region is 1920, is highly 1080-48, i.e., 1032.The width of content display region Degree and/or height can be less than or equal to the correspondingly-sized of display screen.
Content display region can be adapted for showing appointing for the content that needs are shown relative to the precalculated position of display screen Meaning position.For example, content display region is consistent with the width of display screen, and the bottom margin weight of bottom margin and display screen It is folded.User can change size and its position of content display region by personal settings, to meet the personalized need of user Ask.
Correspondingly, in setting steps (such as step S220, step S320 and step S420), the user couple received The personal settings of display screen, can include the size of content display region and its precalculated position relative to display screen.
, can be in base in typesetting rendering step (such as step S230, step S350, step S480 and step S485) This bitmap on the Partial Bitmap of the dimension limitation of content display region, the content for needing to show typesetting and render, To obtain rendering bitmap, wherein, Partial Bitmap turns into part by typesetting and after rendering and renders bitmap.Or, it can also be based on The size of content display region, gathers corresponding Partial Bitmap data, obtains what can be shown in the precalculated position of display screen Part renders bitmap.
In displaying step (such as step S240, step S360, step S490 and step S495), in display screen Precalculated position, such as center or other specified location expositions render bitmap.
So far, present disclosure display methods is described in detail with reference to Fig. 2-4.Above-mentioned content display method can be Realized by a kind of content display.
Fig. 5 shows the schematic block diagram of content display according to an embodiment of the invention.Wherein, content display dress Putting 500 functional module can be realized by the combination for the hardware, software or hardware and software for realizing the principle of the invention.This area Technical staff it is understood that the functional module described by Fig. 5 can combine or be divided into submodule so that real The principle of existing foregoing invention.Therefore, description herein can support to functions described herein module it is any it is possible combination, Or divide or restriction more further.
Content display 500 shown in Fig. 5 can be for realizing the content display method shown in Fig. 2-4, below only The operation that the functional module and each functional module that content display 500 can have can be performed is described briefly, for The detail section being directed to may refer to the description above in association with Fig. 2-4, will not be repeated here.
As shown in figure 5, present disclosure display device 500 can include bitmap creation module 510, setup module 520, Typesetting rendering module 530 and display module 540.
Bitmap creation module 510 can be used for the size based on display screen, and establishment electronic equipment is rendered required for the page Basic bitmap, basic bitmap correspond to display screen transverse screen display pattern and portrait layout display pattern in one kind.
Setup module 520 can be used for receiving personal settings of the user to display screen, and personal settings include display The display pattern of screen.
Typesetting rendering module 530 can be used for the personal settings to display screen in response to user, on basic bitmap Typesetting is carried out to the content for needing to show and rendered, to obtain rendering bitmap, wherein, when the display pattern and base of personal settings When the corresponding display pattern of this bitmap is different, the content for needing to show is carried out in the way of 90 ° clockwise or counterclockwise Typesetting.
Display module 540, which can be used for showing on the display screen, renders bitmap, wherein, when the display mould of personal settings When formula is different from the display pattern of basic bitmap, bitmap will be rendered and be rotated by 90 ° with the direction opposite with typesetting render process.
When user is modified to the personal settings of display screen, make display pattern and the elder generation of current personal settings The display patterns of preceding personal settings is different, and when there is display content on basic bitmap, and typesetting rendering module 530 can be with The personal settings new to display screen in response to receiving user, the previous display content rendered on bitmap of erasing, with extensive This bitmap of complex radical, based on new personal settings, to carry out typesetting to the content for needing to show on basic bitmap and render, To obtain rendering bitmap.
When the display pattern of personal settings display pattern corresponding from basic bitmap is different, display module 540 may be used also So that the postrotational bitmap that renders is moved into the position on display screen suitable for its display.
When user also includes the size of content display region and its relative to display screen to the personal settings of display screen During the precalculated position of curtain, typesetting rendering module 530 can also be in the portion of the dimension limitation by content display region of basic bitmap Divide on bitmap, typesetting is carried out to the content for needing to show and rendered, to obtain rendering bitmap, Partial Bitmap is by typesetting and renders Turn into part afterwards and render bitmap.Display module can also intercept part wash with watercolours according to the size of content display region on bitmap is rendered Bitmap is contaminated, bitmap is rendered with pre-position exposition on the display screen.
【Application examples】
Below by taking smart mobile phone as an example, and combine Fig. 6 simple declaration technical schemes.Intelligence simply is shown in Fig. 6 The display screen (ignoring mobile phone frame) of energy mobile phone.The conventional display pattern of mobile phone is that portrait layout is shown, it is assumed that basic bitmap has been created Build, the size of basic bitmap is identical with the size of display screen (imbricate), and there is display content on basic bitmap, its Conventional words direction is as shown in 610 in Fig. 6.Set assuming that user changes personalization when browsing already present display content Put-the display pattern of display screen, and the size and the size (size of basic bitmap) of display screen of content display region Identical, specific content flow for displaying is as follows:
1. user changes personal settings in browse displays content, for example, the display pattern of display screen is changed to inverse The transverse screen of hour hands is shown.
2. the processor response of smart mobile phone judges new personalization in the new personal settings of the user received Set and whether whether there is display content, new individual character on, basic bitmap identical with the display pattern of previous personal settings Change the display pattern display pattern corresponding with basic bitmap set whether identical etc..
3. exist on different from the display pattern of the previous personal settings and basic bitmap of new personal settings During display content, erasing previously renders the display content on bitmap.
4. based on new personal settings, the writing direction of display content is changed in the way of 90 ° to turn clockwise, is gone forward side by side Row typesetting and render (as shown in the 620 of Fig. 6);
5. based on new personal settings, by basic 90 ° of bitmap rotate counterclockwise, and user is showed on the display screen (as shown in the 630 of Fig. 6).
Thus, it is possible to the change in response to user to the display pattern of display screen, in the desired mode of user basic Typesetting is rendered again on bitmap, to show the content for needing to show, is improved the utilization rate of bitmap, is lifted the experience effect of user.
The electronic equipment and its content display method, device according to the present invention above is described in detail by reference to accompanying drawing With a kind of readable storage medium storing program for executing.
In addition, the method according to the invention is also implemented as a kind of computer program, the computer program includes being used for The computer program code instruction of the above steps limited in the above method for performing the present invention.Or, according to the present invention's Method is also implemented as a kind of computer program product, and the computer program product includes computer-readable medium, in the meter The computer program for the above-mentioned functions limited in the above method for performing the present invention that are stored with calculation machine computer-readable recording medium.
Or, the present invention can also be embodied as a kind of non-transitory machinable medium, be stored thereon with executable Code, when computing device of the executable code by electronic equipment, makes the computing device according to the upper of the present invention State content display method.
Those skilled in the art will also understand is that, the various illustrative logical blocks with reference to described by disclosure herein, mould Block, circuit and algorithm steps may be implemented as the combination of electronic hardware, computer software or both.
Flow chart and block diagram in accompanying drawing show that the possibility of the system and method for multiple embodiments according to the present invention is real Existing architectural framework, function and operation.At this point, each square frame in flow chart or block diagram can represent module, a journey A part for sequence section or code, a part for the module, program segment or code is comprising one or more defined for realizing The executable instruction of logic function.It should also be noted that in some realizations as replacement, the function of being marked in square frame also may be used With with different from the order marked in accompanying drawing generation.For example, two continuous square frames can essentially be performed substantially in parallel, They can also be performed in the opposite order sometimes, and this is depending on involved function.It is also noted that block diagram and/or stream The combination of each square frame in journey figure and the square frame in block diagram and/or flow chart, can use function or operation as defined in execution Special hardware based system realize, or can be realized with the combination of specialized hardware and computer instruction.
It is described above various embodiments of the present invention, described above is exemplary, and non-exclusive, and It is not limited to disclosed each embodiment.In the case of without departing from the scope and spirit of illustrated each embodiment, for this skill Many modifications and changes will be apparent from for the those of ordinary skill in art field.The selection of term used herein, purport The principle, practical application or the improvement to the technology in market of each embodiment are best being explained, or is making the art Other those of ordinary skill are understood that each embodiment disclosed herein.

Claims (10)

1. the content display method of a kind of electronic equipment, the display screen of the electronic equipment has two kinds of display patterns, i.e., horizontal Shield display pattern and portrait layout display pattern, this method includes:
Bitmap foundation step, based on the size of the display screen, create the electronic equipment render it is basic required for the page Bitmap, one kind that the basic bitmap corresponds in the transverse screen display pattern and portrait layout display pattern of the display screen;
Setting steps, receive personal settings of the user to the display screen, and the personal settings include the display screen The display pattern of curtain;
Typesetting rendering step, it is right on the basic bitmap in response to personal settings of the user to the display screen Need the content of display typesetting and render, to obtain rendering bitmap, wherein, when the personal settings display pattern and When the corresponding display pattern of the basic bitmap is different, display is needed to described in the way of 90 ° clockwise or counterclockwise Content carry out typesetting;
Step is shown, bitmap is rendered described in displaying on the display screen, wherein, when the display pattern of the personal settings When different from the display pattern of the basic bitmap, by the bitmap that renders with the direction opposite with the typesetting rendering step It is rotated by 90 °.
2. according to the method described in claim 1, wherein, the typesetting rendering step also includes:
In the personal settings new to the display screen in response to receiving user, the previous display rendered on bitmap of erasing Hold, to recover the basic bitmap, so as to based on the new personal settings, to needing what is shown on the basic bitmap Content typesetting and render, to render bitmap described in obtaining.
3. according to the method described in claim 1, wherein, it is described displaying step also include:
The postrotational bitmap that renders is moved into the position on the display screen suitable for its display.
4. the method according to any one of claim 1-3, wherein,
The user also includes the size of content display region and its relative to display to the personal settings of the display screen The precalculated position of screen,
In the typesetting rendering step, in the part position of the dimension limitation by the content display region of the basic bitmap On figure, the content for needing to show typesetting and render, with obtain it is described render bitmap, wherein the Partial Bitmap is by arranging Version and turn into part after rendering and render bitmap,
The displaying step also includes:
The part is intercepted in bitmap render bitmap, in described render according to the size of the content display region with described aobvious The upper pre-position of display screen curtain shows that the part renders bitmap.
5. the content display of a kind of electronic equipment, the display screen of the electronic equipment has two kinds of display patterns, i.e., horizontal Shield display pattern and portrait layout display pattern, the device includes:
Bitmap creation module, for the size based on the display screen, the establishment electronic equipment is rendered required for the page Basic bitmap, one kind that the basic bitmap corresponds in the transverse screen display pattern and portrait layout display pattern of the display screen;
Setup module, for receiving personal settings of the user to the display screen, the personal settings include described aobvious The display pattern of display screen curtain;
Typesetting rendering module, in response to personal settings of the user to the display screen, in the basic bitmap On the content that needs to show typesetting and render, to obtain rendering bitmap, wherein, when the display mould of the personal settings When formula display pattern corresponding from the basic bitmap is different, needed in the way of 90 ° clockwise or counterclockwise to described The content of display carries out typesetting;
Display module, for rendering bitmap described in the displaying on the display screen, wherein, when the display of the personal settings When pattern is different from the display pattern of the basic bitmap, by the bitmap that renders with opposite with the typesetting render process Direction is rotated by 90 °.
6. device according to claim 5, wherein, the typesetting rendering module is additionally operable to:
In the personal settings new to the display screen in response to receiving user, the previous display rendered on bitmap of erasing Hold, to recover the basic bitmap, so as to based on the new personal settings, to needing what is shown on the basic bitmap Content typesetting and render, to render bitmap described in obtaining.
7. device according to claim 5, wherein, the display module is additionally operable to:
The postrotational bitmap that renders is moved into the position on the display screen suitable for its display.
8. the device according to any one of claim 5-7, wherein,
The user also includes the size of content display region and its relative to display to the personal settings of the display screen The precalculated position of screen,
The typesetting rendering module on the Partial Bitmap of the dimension limitation by the content display region of the basic bitmap, The content for needing to show typesetting and render, with obtain it is described render bitmap, wherein the Partial Bitmap by typesetting with Turn into part after rendering and render bitmap,
The display module is additionally operable to:
The part is intercepted in bitmap render bitmap, in described render according to the size of the content display region with described aobvious The upper pre-position of display screen curtain shows that the part renders bitmap.
9. a kind of electronic equipment, including:
Display screen;
Processor;And
Memory, is stored thereon with executable code, when the executable code is by the computing device, makes the processing Device performs the content display method as any one of claim 1-4.
10. a kind of non-transitory machinable medium, is stored thereon with executable code, when the executable code is electric During the computing device of sub- equipment, make content display side of the computing device as any one of Claims 1-4 Method.
CN201710390698.6A 2017-05-27 2017-05-27 Electronic equipment and content display method, device and storage medium thereof Active CN107239247B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201710390698.6A CN107239247B (en) 2017-05-27 2017-05-27 Electronic equipment and content display method, device and storage medium thereof
PCT/CN2018/086853 WO2018219140A1 (en) 2017-05-27 2018-05-15 Electronic device, content display method and content display apparatus therefor, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710390698.6A CN107239247B (en) 2017-05-27 2017-05-27 Electronic equipment and content display method, device and storage medium thereof

Publications (2)

Publication Number Publication Date
CN107239247A true CN107239247A (en) 2017-10-10
CN107239247B CN107239247B (en) 2019-12-20

Family

ID=59984645

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710390698.6A Active CN107239247B (en) 2017-05-27 2017-05-27 Electronic equipment and content display method, device and storage medium thereof

Country Status (2)

Country Link
CN (1) CN107239247B (en)
WO (1) WO2018219140A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108268288A (en) * 2018-01-28 2018-07-10 厦门四信通信科技有限公司 A kind of method of android display systems dynamic setting adjustment
WO2018219140A1 (en) * 2017-05-27 2018-12-06 广州阿里巴巴文学信息技术有限公司 Electronic device, content display method and content display apparatus therefor, and storage medium
CN116107743A (en) * 2023-01-12 2023-05-12 北京麟卓信息科技有限公司 Bitmap scaling rendering optimization method based on object dynamic migration

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01314382A (en) * 1988-06-14 1989-12-19 Hitachi Ltd Image display system
JPH0721401A (en) * 1993-06-21 1995-01-24 Ricoh Co Ltd Display device
CN105306997A (en) * 2014-05-30 2016-02-03 广州市动景计算机科技有限公司 Mobile terminal play mode switching method and device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10241975B2 (en) * 2015-04-02 2019-03-26 Apple Inc. Dynamically determining arrangement of a layout
CN105447821B (en) * 2015-12-24 2019-07-09 广州乐霸网络科技有限公司 A kind of method and device that mobile terminal web game adaptively rotates
CN107239247B (en) * 2017-05-27 2019-12-20 广州阿里巴巴文学信息技术有限公司 Electronic equipment and content display method, device and storage medium thereof

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01314382A (en) * 1988-06-14 1989-12-19 Hitachi Ltd Image display system
JPH0721401A (en) * 1993-06-21 1995-01-24 Ricoh Co Ltd Display device
CN105306997A (en) * 2014-05-30 2016-02-03 广州市动景计算机科技有限公司 Mobile terminal play mode switching method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
匿名: "横竖屏切换,activity结合fragment的导航布局", 《HTTP://BLOG.CSDN.NET/A13570320979/ARTICLE/DETAILS/52816956》 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018219140A1 (en) * 2017-05-27 2018-12-06 广州阿里巴巴文学信息技术有限公司 Electronic device, content display method and content display apparatus therefor, and storage medium
CN108268288A (en) * 2018-01-28 2018-07-10 厦门四信通信科技有限公司 A kind of method of android display systems dynamic setting adjustment
CN116107743A (en) * 2023-01-12 2023-05-12 北京麟卓信息科技有限公司 Bitmap scaling rendering optimization method based on object dynamic migration

Also Published As

Publication number Publication date
WO2018219140A1 (en) 2018-12-06
CN107239247B (en) 2019-12-20

Similar Documents

Publication Publication Date Title
CN107239247A (en) Electronic equipment and its content display method, device and storage medium
CN100407105C (en) Information processing apparatus and power control method
CN103823620A (en) Screen adaption method and device
CN107895394A (en) Animation effect implementation method, device, terminal device and storage medium
CN111190672A (en) UI (user interface) adaptation method of electronic equipment, electronic equipment and storage medium
CN109062885B (en) Method, device and equipment for adjusting layout of text box
JP2013047859A (en) Authentication device and authentication method
CN107527322A (en) Rendering intent, device, engine and storage medium
CN106557458A (en) Electronic composition method and apparatus
CN106407261A (en) Method for enabling page to be adaptive to screen and intelligent terminal
US20160070450A1 (en) Electronic device, method, and computer program product
WO2015035319A1 (en) Method and apparatus of controlling page element
CN107463307A (en) Document display method and device
CN110211032B (en) Chinese character generating method and device and readable storage medium
CN107179920A (en) Network engine starts method and device
CN106297477A (en) A kind of method and device generating digitized copybook
CN110708426A (en) Double-screen synchronous display method and device, server and storage medium
US11275924B2 (en) Eye-protection mode processing method, device, terminal and computer-readable storage medium in fingerprint recognition mode
CN113222874A (en) Data enhancement method, device and equipment applied to target detection and storage medium
WO2014019425A1 (en) Method and device for transversely laying out list component on terminal
WO2022166753A1 (en) Page display method and apparatus
CN103543974A (en) Method and system for improving font clarity
CN105528769A (en) Image repair method and system
JP6618739B2 (en) Multi-screen display system and display control program
CN107391144A (en) View methods of exhibiting and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20200714

Address after: 310052 room 508, floor 5, building 4, No. 699, Wangshang Road, Changhe street, Binjiang District, Hangzhou City, Zhejiang Province

Patentee after: Alibaba (China) Co.,Ltd.

Address before: 510627 Guangdong city of Guangzhou province Whampoa Tianhe District Road No. 163 Xiping Yun Lu Yun Ping radio square B tower 13 floor 03 unit self

Patentee before: GUANGZHOU ALIBABA LITERATURE INFORMATION TECHNOLOGY Co.,Ltd.

TR01 Transfer of patent right