CN116360901A - Graphic information display method and device, electronic equipment and storage medium - Google Patents
Graphic information display method and device, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN116360901A CN116360901A CN202310142614.2A CN202310142614A CN116360901A CN 116360901 A CN116360901 A CN 116360901A CN 202310142614 A CN202310142614 A CN 202310142614A CN 116360901 A CN116360901 A CN 116360901A
- Authority
- CN
- China
- Prior art keywords
- target
- component
- data
- text
- display
- 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.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 52
- 238000004590 computer program Methods 0.000 claims description 13
- 230000006399 behavior Effects 0.000 claims description 8
- 238000012163 sequencing technique Methods 0.000 claims description 4
- 238000011161 development Methods 0.000 abstract description 26
- 230000000694 effects Effects 0.000 abstract description 22
- 238000004364 calculation method Methods 0.000 description 6
- 238000004891 communication Methods 0.000 description 6
- 238000010586 diagram Methods 0.000 description 3
- 230000001960 triggered effect Effects 0.000 description 3
- 238000004458 analytical method Methods 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000007547 defect Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (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)
Abstract
The invention provides a graphic information display method, a graphic information display device, electronic equipment and a storage medium, wherein the method comprises the following steps: determining component data of a target component at a current interface; acquiring a reference display form existing in an image-text component of a current interface; determining a target presentation form of the target component based on the component data and the reference presentation form; and displaying the image-text information of the target assembly in the target display form. According to the invention, the target display form can be adjusted according to the current component data to display the graphics context, and different display effects can be achieved without multiple development, so that the development cost of graphics context display is reduced, and the flexibility is embodied through different display effects.
Description
Technical Field
The present invention relates to the field of graphics processing technologies, and in particular, to a graphics information display method, a graphics information display device, an electronic device, and a storage medium.
Background
The display form of the graphics and texts approximately comprises the following steps:
1. pure text (title, abstract, keyword, etc.), and displaying (one column, two columns, three columns); 2. graphic text form (left figure right word, upper figure lower word, word is displayed in the form of the figure, 3, pure picture form).
At present, graphics and texts are displayed in a hard coding mode, and if different display effects are achieved, a developer needs to develop each specific display template according to different templates. The hard coding mode is adopted to carry out multiple times of development to achieve different display effects, once the online display form is developed, the online display form is fixed, the development cost is high, and certain flexibility is lacked.
Therefore, how to reduce the development cost of graphic display is a technical problem to be solved currently.
Disclosure of Invention
The invention provides a graphic information display method, a graphic information display device, electronic equipment and a storage medium, which are used for solving the defects that in the prior art, a graphic display form is fixed after development and online, the development cost is high and certain flexibility is lacked, realizing flexible change of a target display form of graphic information and reducing the development cost.
The invention provides a graphic information display method, which comprises the following steps:
determining component data of a target component at a current interface;
acquiring a reference display form existing in an image-text component of a current interface;
determining a target presentation form of the target component based on the component data and the reference presentation form;
and displaying the image-text information of the target assembly in the target display form.
According to the graphic information display method provided by the invention, the method for determining the target display form of the target component based on the component data and the reference display form comprises the following steps:
determining position data in the component data;
acquiring weight coefficients of each display form of the target component based on the position data;
and sequencing the weight coefficients, and determining the display form corresponding to the maximum value of the weight coefficients as a target display form based on the reference display form.
According to the method for displaying the graphic information provided by the invention, after the graphic information is displayed by the target assembly in the target display form, the method further comprises the following steps:
acquiring first width and height data of the target component and second width and height data of a parent component of the target component;
adjusting the first wide-high data based on the second wide-high data to obtain a target image-text duty ratio;
the displaying the image-text information of the target component in the target display form comprises the following steps:
and displaying the image and text of the target assembly according to the target display form and the target image and text duty ratio.
The image-text information display method provided by the invention further comprises the following steps:
and under the condition that the image-text data in the component data does not comprise the picture information, determining that the target display form is a pure text form, and displaying the target component in the pure text form.
According to the graphic information display method provided by the invention, before determining the component data of the current interface, the method further comprises the following steps:
determining a typesetting mode set suitable for the current interface based on behavior data of a user;
the determining a target presentation form of the target component based on the component data and the reference presentation form includes:
determining that a target typesetting mode is different from any reference display mode in the typesetting mode set;
and determining the target display form based on the typesetting mode set, the component data and the reference display form.
According to the image-text information display method provided by the invention, the image-text information display is carried out on the target assembly in the target display form, and the image-text information display method comprises the following steps:
determining the graphic data of the component data;
and under the condition that the image-text data is unchanged, displaying the image-text information of the target component in the target display form in the session period.
The image-text information display method provided by the invention further comprises the following steps:
under the condition that the image-text data is changed, acquiring a substitute display form again;
and displaying the graphic information of the target component in the alternative display form in the session period.
The invention also provides a graphic information display device, which comprises:
the first determining module is used for determining component data of the target component at the current interface;
the acquisition module is used for acquiring the existing reference display form of the graphic and text component of the current interface;
a second determining module for determining a target presentation form of the target component based on the component data and the reference presentation form;
and the display module is used for displaying the image-text information of the target assembly in the target display form.
The invention also provides an electronic device, which comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the processor realizes any of the graphic information display methods when executing the program.
The invention also provides a non-transitory computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements a method of presentation of teletext information as described in any one of the preceding.
The invention also provides a computer program product comprising a computer program which when executed by a processor implements a method of displaying teletext information as described in any one of the preceding.
According to the image-text information display method, the image-text information display device, the electronic equipment and the storage medium, the image-text information display form of the target assembly is determined based on the assembly data and the reference display form after the assembly data of the target assembly on the current interface is determined and the existing reference display form of the image-text assembly on the current interface is obtained, and finally the image-text information of the target assembly is displayed in the target display form. According to the invention, the target display form can be adjusted according to the current component data to display the graphics context, and different display effects can be achieved without multiple development, so that the development cost of graphics context display is reduced, and the flexibility is embodied through different display effects.
Drawings
In order to more clearly illustrate the invention or the technical solutions of the prior art, the following description will briefly explain the drawings used in the embodiments or the description of the prior art, and it is obvious that the drawings in the following description are some embodiments of the invention, and other drawings can be obtained according to the drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic flow chart of a graphic information display method provided by the invention;
fig. 2 is a schematic structural diagram of the graphic information display device provided by the invention;
fig. 3 is a schematic structural diagram of an electronic device provided by the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present invention more apparent, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is apparent that the described embodiments are some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Referring to fig. 1, the graphic information display method provided by the present invention includes, but is not limited to, the following steps:
and 140, displaying the image-text information of the target assembly in the target display form.
Specifically, in the step 110, component data of the target component at the current interface needs to be dynamically acquired. Wherein the component data includes, but is not limited to: the position of the target component in the current interface, the condition of the adjacent components, graphic data and other information.
It should be noted that, the location of the target component in the current interface may be in the first screen area or the non-first screen area. The first screen area is the area which can be seen without dragging the scroll bar after the first loading, and the non-first screen area is the area which can not be seen without dragging the scroll bar after the first loading. Further, the first screen region may be divided into various display forms, such as upper left (left-top), upper right (right-top), left (mid-left), right (mid-right), lower left (left-bottom), lower right (right-bottom), upper (top), middle region (middle), lower (bottom), and other different display regions. The display position of the target component is obtained by setting when the image-text component is introduced.
Next, the existing reference presentation form of the current interface graphic assembly is obtained through step 120. It should be noted that the display form includes graphic display, image display and text display. Further, the graphic display can be classified according to the positional relationship between the pictures and the characters, for example: left-right, contextual stacking, and the like. Wherein the reference display form is one or more of them.
The presentation of the target value component is then determined, via step 130, using the component data and the reference presentation obtained in steps 110 and 120. The concrete implementation is as follows: and determining information such as the position, the image-text data, the condition of adjacent components and the like of the target component by utilizing the component data, determining a display form different from the reference display form as a target display form, and finally displaying the image-text information of the target component in the target display form through step 140. The diversity and flexibility of the presentation of the figures is presented by a number of different presentation forms.
According to the image-text information display method provided by the invention, the component data of the target component on the current interface is determined, the existing reference display form of the image-text component on the current interface is obtained, then the target display form of the target component is determined based on the component data and the reference display form, and finally the image-text information display of the target component is carried out in the target display form. According to the invention, the target display form can be adjusted according to the current component data to display the graphics context, and different display effects can be achieved without multiple development, so that the development cost of graphics context display is reduced, and the flexibility is embodied through different display effects.
In some alternative embodiments, the determining the target presentation form of the target component based on the component data and the reference presentation form includes:
determining position data in the component data;
acquiring weight coefficients of each display form of the target component based on the position data;
and sequencing the weight coefficients, and determining the display form corresponding to the maximum value of the weight coefficients as a target display form based on the reference display form.
In this embodiment, weight calculation is performed on different positions through the position data, so as to determine a final target display form. Specifically, the position data in the component data is determined, and corresponding to the above embodiment, the position of the target component is determined to be different display areas such as left-top (left-top), right-top (right-top), left (mid-left), right (mid-right), left-bottom (left-bottom), right-bottom (right-bottom), top (top), middle area (middle), bottom (bottom), and the like.
And then sorting different display modes in each mode according to the position data. For example, the position data is left (mid-left), and the weight coefficients of various display modes such as left graph right graph, context graph context and text graph stack can be respectively recorded as A, B, C, D, E.
And then sorting according to the size of the weight coefficients, when the position data is left (mid-left), typesetting of the left graph and the right graph is the most suitable, namely the weight coefficients are the highest, and then the graph stacking … … is the left graph and the right graph finally, so that the display mode corresponding to the weight coefficient A, namely the left graph and the right graph are the final target display mode.
According to the image-text information display method provided by the invention, the weight calculation of different positions is carried out through the position data, the maximum value of the weight coefficient is determined, so that the final target display form is determined, namely, image-text display of various modes is further realized through the position data, and different display effects can be achieved without multiple development, so that the development cost of image-text display is reduced, and the flexibility is embodied through different display effects.
In some optional embodiments, after the displaying the graphic information of the target component in the target display form, the method further includes:
acquiring first width and height data of the target component and second width and height data of a parent component of the target component;
adjusting the first wide-high data based on the second wide-high data to obtain a target image-text duty ratio;
the displaying the image-text information of the target component in the target display form comprises the following steps:
and displaying the image and text of the target assembly according to the target display form and the target image and text duty ratio.
In this embodiment, after the target exhibition mode of the target component is acquired, the width and height data of the target component need to be determined, which may be denoted as X, and the width and height data of the parent component of the target component may be denoted as Y. Y is not less than X. And then adjusting X by referring to the size of Y, determining the final target image-text duty ratio, and filling the parent component container with the target component. I.e. the value of X is adjusted to a value that is not much different from Y but smaller than Y.
In some alternative embodiments, further comprising:
and under the condition that the image-text data in the component data does not comprise the picture information, determining that the target display form is a pure text form, and displaying the target component in the pure text form.
The embodiment provides how to display the target component when no picture information exists in the component data. When the image-text data in the component data does not comprise the image information, determining that the target display form is a pure text form, and displaying the target component in the pure text form.
According to the image-text information display method provided by the invention, when the component data does not have the image information, the target component is displayed in a pure text form, and different display effects can be achieved without multiple development, so that the development cost of image-text display is reduced, and the flexibility is embodied through different display effects.
In some optional embodiments, the determining the target component is before the component data of the current interface further includes:
determining a typesetting mode set suitable for the current interface based on behavior data of a user;
the determining a target presentation form of the target component based on the component data and the reference presentation form includes:
determining that a target typesetting mode is different from any reference display mode in the typesetting mode set;
and determining the target display form based on the typesetting mode set, the component data and the reference display form.
It should be noted that, in this embodiment, when the interface is initialized, the analysis result of the user behavior data for the system and the current interface is obtained, and several typesetting modes that are most suitable for the current interface are determined according to comprehensive calculation, and are used as candidate reference sets of the layout during typesetting.
The user behavior data are personal preference, personal habit and the like of the user, for example, the display form preferred by the user is graphic-text superposition, and in the practical application process, the preference priority of the user is higher than the weight coefficient and the reference display form existing on the current interface, namely, the display is performed in a graphic-text superposition mode.
In some optional embodiments, displaying the graphic information of the target component in the target display form includes:
determining the graphic data of the component data;
and under the condition that the image-text data is unchanged, displaying the image-text information of the target component in the target display form in the session period.
In some alternative embodiments, further comprising:
under the condition that the image-text data is changed, acquiring a substitute display form again;
and displaying the graphic information of the target component in the alternative display form in the session period.
In this embodiment, the target presentation form of the target component is fixed in the same session period without the change of the teletext data. Otherwise, if the graphic data changes, the logic for recalculating the display form of the current component is triggered.
It should be noted that, in this embodiment, the same session period of the browser refers to opening the interface of the browser to access a system, and is counted as a session period before the interface is not closed. Opening again after the interface is turned off will generate a new session.
According to the image-text information display method provided by the invention, whether different display forms are switched in the same session period is determined according to the change condition of image-text data, the logic can be automatically triggered through the change of the image-text data, and different display effects can be achieved without multiple development, so that the development cost of image-text display is reduced, and the flexibility is embodied through different display effects.
The text information display device provided by the invention is described below, and the text information display device described below and the text information display method described above can be correspondingly referred to each other.
Referring to fig. 2, the graphic information display device provided by the present invention includes, but is not limited to, the following modules:
a first determining module 210, configured to determine component data of the target component at the current interface;
an obtaining module 220, configured to obtain an existing reference display form of the graphic assembly of the current interface;
a second determining module 230 for determining a target presentation form of the target component based on the component data and the reference presentation form;
and the display module 240 is configured to display the graphic information of the target component in the target display form.
Specifically, in the first determining module 210, component data of the target component at the current interface needs to be dynamically acquired. Wherein the component data includes, but is not limited to: the position of the target component in the current interface, the condition of the adjacent components, graphic data and other information.
It should be noted that, the location of the target component in the current interface may be in the first screen area or the non-first screen area. The first screen area is the area which can be seen without dragging the scroll bar after the first loading, and the non-first screen area is the area which can not be seen without dragging the scroll bar after the first loading. Further, the first screen region may be divided into various display forms, such as upper left (left-top), upper right (right-top), left (mid-left), right (mid-right), lower left (left-bottom), lower right (right-bottom), upper (top), middle region (middle), lower (bottom), and other different display regions. The display position of the target component is obtained by setting when the image-text component is introduced.
Next, the existing reference display form of the current interface graphic assembly is acquired through the acquisition module 220. It should be noted that the display form includes graphic display, image display and text display. Further, the graphic display can be classified according to the positional relationship between the pictures and the characters, for example: left-right, contextual stacking, and the like. Wherein the reference display form is one or more of them.
The presentation form of the target value component is then determined by the second determining module 230 using the component data and the reference presentation form acquired in the first determining module 210 and the acquiring module 220. The concrete implementation is as follows: and determining information such as the position, the image-text data, the condition of adjacent components and the like of the target component by utilizing the component data, determining a display form different from the reference display form as a target display form, and finally displaying the image-text information of the target component in the target display form through the display module 240. The diversity and flexibility of the presentation of the figures is presented by a number of different presentation forms.
According to the image-text information display device provided by the invention, the component data of the target component on the current interface is determined, the existing reference display form of the image-text component on the current interface is obtained, then the target display form of the target component is determined based on the component data and the reference display form, and finally the image-text information display of the target component is carried out in the target display form. According to the invention, the target display form can be adjusted according to the current component data to display the graphics context, and different display effects can be achieved without multiple development, so that the development cost of graphics context display is reduced, and the flexibility is embodied through different display effects.
In some alternative embodiments, the determining the target presentation form of the target component based on the component data and the reference presentation form includes:
determining position data in the component data;
acquiring weight coefficients of each display form of the target component based on the position data;
and sequencing the weight coefficients, and determining the display form corresponding to the maximum value of the weight coefficients as a target display form based on the reference display form.
In this embodiment, weight calculation is performed on different positions through the position data, so as to determine a final target display form. Specifically, the position data in the component data is determined, and corresponding to the above embodiment, the position of the target component is determined to be different display areas such as left-top (left-top), right-top (right-top), left (mid-left), right (mid-right), left-bottom (left-bottom), right-bottom (right-bottom), top (top), middle area (middle), bottom (bottom), and the like.
And then sorting different display modes in each mode according to the position data. For example, the position data is left (mid-left), and the weight coefficients of various display modes such as left graph right graph, context graph context and text graph stack can be respectively recorded as A, B, C, D, E.
And then sorting according to the size of the weight coefficients, when the position data is left (mid-left), typesetting of the left graph and the right graph is the most suitable, namely the weight coefficients are the highest, and then the graph stacking … … is the left graph and the right graph finally, so that the display mode corresponding to the weight coefficient A, namely the left graph and the right graph are the final target display mode.
According to the image-text information display device provided by the invention, the weight calculation of different positions is carried out through the position data, the maximum value of the weight coefficient is determined, so that the final target display form is determined, namely, image-text display of various modes is further realized through the position data, and different display effects can be achieved without multiple development, so that the development cost of image-text display is reduced, and the flexibility is embodied through different display effects.
In some optional embodiments, after the displaying the graphic information of the target component in the target display form, the method further includes:
acquiring first width and height data of the target component and second width and height data of a parent component of the target component;
adjusting the first wide-high data based on the second wide-high data to obtain a target image-text duty ratio;
the displaying the image-text information of the target component in the target display form comprises the following steps:
and displaying the image and text of the target assembly according to the target display form and the target image and text duty ratio.
In this embodiment, after the target exhibition mode of the target component is acquired, the width and height data of the target component need to be determined, which may be denoted as X, and the width and height data of the parent component of the target component may be denoted as Y. Y is not less than X. And then adjusting X by referring to the size of Y, determining the final target image-text duty ratio, and filling the parent component container with the target component. I.e. the value of X is adjusted to a value that is not much different from Y but smaller than Y.
In some alternative embodiments, further comprising:
and under the condition that the image-text data in the component data does not comprise the picture information, determining that the target display form is a pure text form, and displaying the target component in the pure text form.
The embodiment provides how to display the target component when no picture information exists in the component data. When the image-text data in the component data does not comprise the image information, determining that the target display form is a pure text form, and displaying the target component in the pure text form.
According to the image-text information display device provided by the invention, when the component data does not have the image information, the target component is displayed in a pure text form, and different display effects can be achieved without multiple development, so that the development cost of image-text display is reduced, and the flexibility is embodied through different display effects.
In some optional embodiments, the determining the target component is before the component data of the current interface further includes:
determining a typesetting mode set suitable for the current interface based on behavior data of a user;
the determining a target presentation form of the target component based on the component data and the reference presentation form includes:
determining that a target typesetting mode is different from any reference display mode in the typesetting mode set;
and determining the target display form based on the typesetting mode set, the component data and the reference display form.
It should be noted that, in this embodiment, when the interface is initialized, the analysis result of the user behavior data for the system and the current interface is obtained, and several typesetting modes that are most suitable for the current interface are determined according to comprehensive calculation, and are used as candidate reference sets of the layout during typesetting.
The user behavior data are personal preference, personal habit and the like of the user, for example, the display form preferred by the user is graphic-text superposition, and in the practical application process, the preference priority of the user is higher than the weight coefficient and the reference display form existing on the current interface, namely, the display is performed in a graphic-text superposition mode.
In some optional embodiments, displaying the graphic information of the target component in the target display form includes:
determining the graphic data of the component data;
and under the condition that the image-text data is unchanged, displaying the image-text information of the target component in the target display form in the session period.
In some alternative embodiments, further comprising:
under the condition that the image-text data is changed, acquiring a substitute display form again;
and displaying the graphic information of the target component in the alternative display form in the session period.
In this embodiment, the target presentation form of the target component is fixed in the same session period without the change of the teletext data. Otherwise, if the graphic data changes, the logic for recalculating the display form of the current component is triggered.
It should be noted that, in this embodiment, the same session period of the browser refers to opening the interface of the browser to access a system, and is counted as a session period before the interface is not closed. Opening again after the interface is turned off will generate a new session.
The graphic information display device provided by the invention can automatically trigger logic through the change of the graphic data by determining whether to switch different display forms in the same session period according to the change condition of the graphic data, and can achieve different display effects without multiple development, thereby reducing the development cost of graphic display and embodying flexibility through different display effects.
Fig. 3 illustrates a physical schematic diagram of an electronic device, as shown in fig. 3, where the electronic device may include: processor 310, communication interface (Communications Interface) 320, memory 330 and communication bus 340, wherein processor 310, communication interface 320, memory 330 accomplish communication with each other through communication bus 340. The processor 310 may invoke logic instructions in the memory 330 to perform a method of presentation of teletext information, the method comprising:
determining component data of a target component at a current interface;
acquiring a reference display form existing in an image-text component of a current interface;
determining a target presentation form of the target component based on the component data and the reference presentation form;
and displaying the image-text information of the target assembly in the target display form.
Further, the logic instructions in the memory 330 described above may be implemented in the form of software functional units and may be stored in a computer-readable storage medium when sold or used as a stand-alone product. Based on this understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
In another aspect, the present invention also provides a computer program product, where the computer program product includes a computer program, where the computer program can be stored on a non-transitory computer readable storage medium, and when the computer program is executed by a processor, the computer can execute the graphic information display method provided by the above methods, and the method includes:
determining component data of a target component at a current interface;
acquiring a reference display form existing in an image-text component of a current interface;
determining a target presentation form of the target component based on the component data and the reference presentation form;
and displaying the image-text information of the target assembly in the target display form.
In yet another aspect, the present invention further provides a non-transitory computer readable storage medium having stored thereon a computer program which, when executed by a processor, is implemented to perform the method for displaying teletext information provided by the methods described above, the method comprising:
determining component data of a target component at a current interface;
acquiring a reference display form existing in an image-text component of a current interface;
determining a target presentation form of the target component based on the component data and the reference presentation form;
and displaying the image-text information of the target assembly in the target display form.
The apparatus embodiments described above are merely illustrative, wherein the elements illustrated as separate elements may or may not be physically separate, and the elements shown as elements may or may not be physical elements, may be located in one place, or may be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
From the above description of the embodiments, it will be apparent to those skilled in the art that the embodiments may be implemented by means of software plus necessary general hardware platforms, or of course may be implemented by means of hardware. Based on this understanding, the foregoing technical solution may be embodied essentially or in a part contributing to the prior art in the form of a software product, which may be stored in a computer readable storage medium, such as ROM/RAM, a magnetic disk, an optical disk, etc., including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method described in the respective embodiments or some parts of the embodiments.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present invention, and are not limiting; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims (10)
1. The image-text information display method is characterized by comprising the following steps of:
determining component data of a target component at a current interface;
acquiring a reference display form existing in an image-text component of a current interface;
determining a target presentation form of the target component based on the component data and the reference presentation form;
and displaying the image-text information of the target assembly in the target display form.
2. The method of claim 1, wherein the determining the target presentation form of the target component based on the component data and the reference presentation form comprises:
determining position data in the component data;
acquiring weight coefficients of each display form of the target component based on the position data;
and sequencing the weight coefficients, and determining the display form corresponding to the maximum value of the weight coefficients as a target display form based on the reference display form.
3. The method for displaying graphic information according to claim 2, wherein after displaying the graphic information by the target component in the target display form, the method further comprises:
acquiring first width and height data of the target component and second width and height data of a parent component of the target component;
adjusting the first wide-high data based on the second wide-high data to obtain a target image-text duty ratio;
the displaying the image-text information of the target component in the target display form comprises the following steps:
and displaying the image and text of the target assembly according to the target display form and the target image and text duty ratio.
4. The method of claim 1, further comprising:
and under the condition that the image-text data in the component data does not comprise the picture information, determining that the target display form is a pure text form, and displaying the target component in the pure text form.
5. The method for displaying graphic information according to claim 1, wherein determining the component data of the target component before the component data of the current interface further comprises:
determining a typesetting mode set suitable for the current interface based on behavior data of a user;
the determining a target presentation form of the target component based on the component data and the reference presentation form includes:
determining that a target typesetting mode is different from any reference display mode in the typesetting mode set;
and determining the target display form based on the typesetting mode set, the component data and the reference display form.
6. The method for displaying graphic information according to claim 1, wherein displaying the graphic information of the target component in the target display form comprises:
determining the graphic data of the component data;
and under the condition that the image-text data is unchanged, displaying the image-text information of the target component in the target display form in the session period.
7. The method of claim 6, further comprising:
under the condition that the image-text data is changed, acquiring a substitute display form again;
and displaying the graphic information of the target component in the alternative display form in the session period.
8. An image-text information display device, characterized by comprising:
the first determining module is used for determining component data of the target component at the current interface;
the acquisition module is used for acquiring the existing reference display form of the graphic and text component of the current interface;
a second determining module for determining a target presentation form of the target component based on the component data and the reference presentation form;
and the display module is used for displaying the image-text information of the target assembly in the target display form.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the method of displaying teletext information according to any one of claims 1 to 7 when executing the program.
10. A non-transitory computer readable storage medium having stored thereon a computer program, wherein the computer program when executed by a processor implements the method of presentation of teletext information according to any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310142614.2A CN116360901A (en) | 2023-02-20 | 2023-02-20 | Graphic information display method and device, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310142614.2A CN116360901A (en) | 2023-02-20 | 2023-02-20 | Graphic information display method and device, electronic equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN116360901A true CN116360901A (en) | 2023-06-30 |
Family
ID=86907472
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310142614.2A Pending CN116360901A (en) | 2023-02-20 | 2023-02-20 | Graphic information display method and device, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116360901A (en) |
-
2023
- 2023-02-20 CN CN202310142614.2A patent/CN116360901A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108040278A (en) | Active page processing method, server, system and the storage medium of smart television | |
CN109376351B (en) | Method for adaptively typesetting teaching contents on tablet equipment | |
CN106021549A (en) | Page control method and device of web application program and terminal device | |
CN101350068A (en) | Display control apparatus and display control method | |
CN111538697B (en) | Page turning processing method of electronic book, electronic equipment and computer storage medium | |
CN107147940A (en) | Method, device, electronic equipment and the storage medium of content carousel | |
CN113268303A (en) | Interface element configuration method and device, storage medium and electronic equipment | |
EP4366315A1 (en) | Video processing method and apparatus, device, and storage medium | |
US11144717B2 (en) | Automatic generation of document layouts | |
JP7254393B1 (en) | Information processing device, method, program, and system | |
CN109151547B (en) | Carousel method, carousel device, terminal and storage medium | |
CN113835806B (en) | Page layout method and device, electronic equipment and storage medium | |
US20240201830A1 (en) | Page interaction | |
CN110705234A (en) | Self-adaptive typesetting and paging method and device for system form | |
CN106445903A (en) | Image-text data typesetting method and apparatus | |
CN116360901A (en) | Graphic information display method and device, electronic equipment and storage medium | |
CN106558019B (en) | Picture arrangement method and device | |
CN106488314B (en) | A kind of barrage rendering method | |
CN110368692B (en) | Image-text mixed arrangement method and device | |
CN113419798A (en) | Content display method, device, equipment and storage medium | |
CN109918156B (en) | Video interface processing method and system | |
CN113935300A (en) | Dynamic table generation method and device | |
CN112861611A (en) | Copying method, copying device, computer equipment and storage medium | |
CN107066435B (en) | Typesetting method and typesetting device | |
CN115599384B (en) | Picture character generating method, device, equipment and storage medium thereof |
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 |