CN116680034B - LED asynchronous display screen self-adaptive mass-sending realization method - Google Patents

LED asynchronous display screen self-adaptive mass-sending realization method Download PDF

Info

Publication number
CN116680034B
CN116680034B CN202310960495.1A CN202310960495A CN116680034B CN 116680034 B CN116680034 B CN 116680034B CN 202310960495 A CN202310960495 A CN 202310960495A CN 116680034 B CN116680034 B CN 116680034B
Authority
CN
China
Prior art keywords
display
screen
display content
mass
fontsize
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202310960495.1A
Other languages
Chinese (zh)
Other versions
CN116680034A (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.)
Shandong Explorer Optoelectronic Technology Co ltd
Original Assignee
Shandong Explorer Optoelectronic 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 Shandong Explorer Optoelectronic Technology Co ltd filed Critical Shandong Explorer Optoelectronic Technology Co ltd
Priority to CN202310960495.1A priority Critical patent/CN116680034B/en
Publication of CN116680034A publication Critical patent/CN116680034A/en
Application granted granted Critical
Publication of CN116680034B publication Critical patent/CN116680034B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/103Formatting, i.e. changing of presentation of documents
    • G06F40/109Font handling; Temporal or kinetic typography
    • YGENERAL 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
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE 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/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

The application belongs to the technical field of display screen information mass-sending self-adaption, and particularly relates to a method for realizing self-adaption mass-sending of an LED asynchronous display screen. According to the method, the display screen with the minimum height of the terminal is used as a reference base screen, the screen height of the base screen is used as a reference, the font size of the mass-sending terminal and the occupied width of the display content are calculated, and the font size and the arrangement display pattern which are suitable for the size of the mass-sending terminal are calculated in a self-adaptive mode by comparing the occupied width of the display content with the screen width of the mass-sending terminal. The method can realize real-time dynamic mass transmission of the display screen information, achieves the self-adaptive display of the font size of the display content and the height of the terminal display screen, and can greatly improve the transmission speed and the display effect compared with the common display screen information release method.

Description

LED asynchronous display screen self-adaptive mass-sending realization method
Technical Field
The application belongs to the technical field of display screen information mass-sending self-adaption, and particularly relates to a method for realizing self-adaption mass-sending of an LED asynchronous display screen.
Background
The current display screen is suitable for various application ecologies of the current society, and users especially aim at the attractiveness of information display and the convenience and timeliness of release, and in smart city and smart high-speed construction, the display screen information release of various display sizes of various configurations is difficult to achieve the self-adaption of display information, and various problems that the display content area is too small to see clearly at a long distance or the display information is poor in attractiveness after being stretched and deformed often occur.
The existing display screen information transmission schemes are two, and the first scheme is that display contents are transmitted in a picture mode, the mode is single and fixed, and the display layout is limited. The second solution is that the display content is sent literally, but the font size and display layout do not dynamically match the screen height of the display screen. However, both of these schemes have drawbacks, with the first scheme having the following drawbacks: the picture display information mode is solidified, and pictures can stretch and retract when different display screens are sent, so that the display effect is poor, even some display is seriously deformed, and the like. The second solution has the disadvantage of: the display information can not be dynamically adjusted with the width and height of the display screen, and the font size and the display layout can not be adaptively matched according to the size of the display screen body during transmission, so that the display effect is poor.
Disclosure of Invention
The application provides a self-adaptive mass-sending realization method of an LED asynchronous display screen, which can realize real-time dynamic mass-sending of display screen information, achieve highly self-adaptive display of font size and terminal display screen, and greatly improve sending speed and display effect compared with a common display screen information release method, and solve the problems of self-adaptive display of display content and terminal display screen font size and inconsistent information display typesetting layout during conventional display screen information mass-sending.
The technical scheme of the application is realized as follows:
the self-adaptive mass-sending realization method of the LED asynchronous display screen comprises the following steps:
s1, selecting a display screen with the minimum terminal height as a reference basic screen, wherein the screen height is recorded as BH, and the screen width is recorded as BW;
s2, setting a predetermined font size mode: calculating font size FontSizeBH of a basic screen according to BH, calculating width W occupied by display content according to FontSizeBH, and finally determining the value of FontSizeBH by comparing the size relation of W and BW;
s3, selecting a mass-sending terminal needing mass-sending display content, wherein the screen height is recorded as TH, and the screen width is recorded as TW;
s4, calculating the font size FontSize of the mass-sending terminal according to the FontSizeBH value finally determined in the step S2, calculating the width W occupied by the display content according to the FontSize, and judging whether the layout and typesetting can be displayed in the middle according to a single-line text by comparing the size relation between W and TW;
s5, if the central layout typesetting can not be displayed according to the single-line text in the step S4, calculating FontSize and W again, judging the size relation between W and TW again, and judging whether the central layout typesetting can be displayed according to the multi-line text.
According to the technical scheme, the font size of the basic screen and the width occupied by the display content are calculated by taking the screen height of the basic screen as a reference, then the font size of the basic screen is finally determined by comparing the width occupied by the display content with the screen width of the basic screen, the font size of the mass-sending terminal and the width occupied by the display content are calculated according to the font size of the basic screen, and the font size of the mass-sending terminal is compared with the screen width of the mass-sending terminal, so that whether the mass-sending terminal displays single-line text or displays multiple-line text is judged, the mass-sending terminal can perform self-adaptive matching processing according to the font size of the basic screen and the display screen size of the mass-sending terminal, the transmission speed of the display content is improved, and the display effect is improved.
Optionally, in step S2, fontsize bh=convert.toint32 ((bh×3)/(4) -1), w=fullnum×fontsize bh+halfnum×fontsize BH/(fontsize BH) +2; if W is less than or equal to BW, the font size of the basic screen is recalculated if W is greater than BW, so that all characters meeting the display content can be displayed completely in one line, and the recalculated fontsize bh=bw (HalfNum/2+fullnum), wherein FullNum is the number of full-angle characters in the display content, and HalfNum is the number of half-angle characters in the display content.
Through the technical scheme, the font size of the basic screen is required to be compared with the screen width of the basic screen according to the occupied width of the display content, so that the font size of the basic screen is determined, and the accuracy of data is improved. And determining the numerical value of FontSizeBH according to the size relation of W and BW, so that the display content can be matched with the screen height and the screen width of the basic screen.
Optionally, in step S4, fontsize=convert.toint32 (FontSize bh×d), w=fullnum×fontsize+halfnum×fontsize/2, where d=th/BH; fullNum is the number of full-angle characters in the display content, and HalfNum is the number of half-angle characters in the display content.
According to the technical scheme, the font size of the mass-sending terminal is calculated by taking the ratio of the screen height of the mass-sending terminal to the screen height of the basic screen and the font size of the basic screen as parameters, and the width occupied by the display content in the mass-sending terminal can be calculated by the font size of the mass-sending terminal, so that the display layout mode of the mass-sending terminal is judged.
Optionally, in step S4, if W is less than or equal to TW, the display content is typeset according to the single-line text display centering layout.
Through the technical scheme, the size relation between W and TW is compared, so that whether the mass-sending terminal can typeset in a centered layout or not is judged, and the display content can be adapted to the height of the display screen of the mass-sending terminal.
Optionally, in step S5, if W is greater than TW, d is compared, if d is less than 2, the display content is displayed according to the single-line text and scrolled to the left, if d is greater than or equal to 2, fontSize and W need to be recalculated, and by comparing the recalculated W with TW, it is determined whether the display content is typeset according to the multi-line text display centering layout or scrolled to the left according to the multi-line text display.
According to the technical scheme, the screen height of the mass-sending terminal is compared with the screen height of the basic screen, whether the display content is displayed in a mode of scrolling leftwards according to single-line text display or in a mode of scrolling leftwards according to multiple-line text display is judged, and whether the display content is arranged in a mode of displaying the central layout according to multiple-line text display or is displayed in a mode of scrolling leftwards according to multiple-line text display is judged according to the size between W and TW. The comparison mode can enable the display content to be capable of adjusting the display mode of the display content according to the size of the display screen of the mass-sending terminal, so that the display content can be adjusted in a better self-adaptive mode, and the display content is matched with the size of the display screen of the mass-sending terminal.
Optionally, in step S5, the recalculated fontsize=overt.toint32 (FontSize bh×d1), the recalculated w= (fullsize+halfnum×fontsize (FontSize/2)), where d1= (TH/2)/(BH), fullNum is the number of full-angle characters in the display content, and HalfNum is the number of half-angle characters in the display content.
Through the technical scheme, when d is more than or equal to 2, the font size of the display content is required to be readjusted, the font size of the mass-sending terminal is recalculated, and the width occupied by the display content is recalculated, so that the display content is readjusted with the screen width of the mass-sending terminal, and the mode that the mass-sending terminal arranges and distributes the display content is determined.
Optionally, if the recalculated W is less than or equal to TW, the display content is typeset according to the multi-line text display centering layout, and if the recalculated W is more than TW, the display content is displayed in a left scrolling mode according to the multi-line text display.
According to the technical scheme, the size relation of the recalculated W and TW is compared, so that whether the display content is typeset according to the multi-line text display centering layout or is played in a left scrolling mode according to the multi-line text display is finally determined, and the display content is matched with the screen height of the display screen of the mass sending terminal.
Optionally, in step S2, the setting of the predetermined font size mode further includes setting a limited font size FontSize gd, so that the font sizes of all the group sending terminals are consistent with the basic screen, i.e. fontsize=fontsize gd, and calculating a width w=fullnum×fontsize+halfsum×fontsize (FontSize/2) occupied by the display content; if W is less than or equal to TW, typesetting the display content according to the single-line text display centering layout, and if W is more than TW, scrolling and playing the display content leftwards according to the single-line text display.
Through the technical scheme, the font size FontSizeGD is limited, so that the font sizes of all the mass-sending terminals are consistent with the basic screen, display contents are displayed according to a single line of text, and selectable spaces are provided for different demands of customers.
After the technical scheme is adopted, the application has the beneficial effects that:
according to the LED asynchronous display screen self-adaptive mass-sending realization method, one display screen with the smallest height value is selected as a basic screen in all display screen terminals configured by a user, the font size of a system plan is calculated and set according to the screen height pixel value of the basic screen, when a message is sent in a mass-sending mode, the display screen height of the mass-sending terminal is compared with the height ratio of the basic screen, and then the display font size is self-adaptively matched with the screen height and the screen width of the display screen of the mass-sending terminal according to various related algorithms.
The method can realize real-time dynamic mass sending of the display screen information, achieves highly self-adaptive display of font size and a terminal display screen, can greatly improve the sending speed and the display effect compared with a common display screen information release method, and solves the problems that display content is not matched with the font size display of the terminal display screen and the information display typesetting layout is not coordinated when the display screen information is mass sent in the past.
Drawings
In order to more clearly illustrate the embodiments of the application or the technical solutions of the prior art, the drawings which are used in the description of the embodiments or the prior art will be briefly described, it being obvious that the drawings in the description below are only some embodiments of the application, and that other drawings can be obtained according to these drawings without inventive faculty for a person skilled in the art.
FIG. 1 is a schematic diagram of an LED asynchronous display screen adaptive mass-sending system in an embodiment;
FIG. 2 is a schematic diagram of an adaptive mass-sending step of an LED display screen in an embodiment;
fig. 3 is a schematic diagram of an adaptive mass-sending calculation rule in an embodiment.
Detailed Description
The following description of the embodiments of the present application will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
The embodiment of the application discloses a self-adaptive mass-sending realization method for an LED asynchronous display screen.
Examples: according to the method for realizing self-adaptive mass-sending of the LED asynchronous display screen shown in fig. 1 to 3, the method comprises the following steps:
s1, selecting a display screen with the minimum terminal height from display screen terminal configuration as a reference basic screen, marking the screen height of the basic screen as BH, and marking the screen width of the basic screen as BW.
S2, setting a predetermined font size mode: the method comprises two modes, wherein the first mode is limiting the font size, and the limiting font size FontSizeGD is set, so that the font sizes of all mass-sending terminals are consistent with the basic screen. The value of FontSizeGD is specified by a user, and is smaller than the display screen with the smallest height in the LED asynchronous display screen self-adaptive mass-sending system. Because if the set font size exceeds the height of the target display screen, an abnormality is displayed.
The second mode is to adaptively adjust the font size, and calculate the font size FontSizeBH, fontSizeBH =convert.toint32 ((bh×3)/(4) -1) of the basic screen in the step S1 with BH as a reference; calculating the width w=fullnum+fontsize+halfnum of the display content character (fontsize bh/2); if W is less than or equal to BW, the font size of the basic screen is recalculated if W is greater than BW, so that all characters meeting the display content can be displayed completely in one line, and the recalculated fontsize bh=bw (HalfNum/2+fullnum), wherein FullNum is the number of full-angle characters in the display content, and HalfNum is the number of half-angle characters in the display content. To int32 is a formula that converts non-integers into integers, since font sizes can be calculated in terms of integers. And carrying out adaptive scaling on the content to be displayed according to the screen height of the basic screen in the mode II.
The actual use of the two modes depends on the preference of the user, and if the user wants the font sizes of all the display screens to be uniform, the user follows the mode I; if the fonts of all the display screens are matched with the respective screen heights as far as possible, according to the mode II, different application scene requirements can be realized in various specific occasions.
S3, selecting mass-sending terminals needing mass-sending display contents, wherein the screen height of each mass-sending terminal is recorded as TH, and the screen width is recorded as TW.
S4, in the mode one, the font size of the group sending terminal is FontSize=FontSizeGD, and the width W=FullNum+HalfNum (FontSize/2) occupied by the display content is calculated; in the mode one, if W is less than or equal to TW, the display content is typeset according to the single-line text display and is arranged in the middle, and if W is more than TW, the display content is displayed and scrolled left according to the single-line text.
In a second mode, calculating font size FontSize of the group sending terminal and width W occupied by display content according to FontSize BH, wherein fontsize=overt.toint32 (FontSize BH) w=fullnum (fontsize+halfnum) x (FontSize/2), wherein d=th/BH, fullNum is the number of full-angle characters in the display content, and HalfNum is the number of half-angle characters in the display content; in the second mode, if W is less than or equal to TW, displaying the display content according to the single-line text, and typesetting the central layout.
S5, in the second mode of the step S4, if W is more than TW, judging the size of d, if d is less than 2, displaying the display content according to a single line text, displaying the display content according to a plurality of lines of text, and recalculated the self-adaptive font size FontSize of the mass-sending terminal and the display content occupation width W, and judging whether the display content is typeset according to the central layout of the display of the plurality of lines of text or displayed according to the left scrolling of the display of the plurality of lines of text by comparing the size relation of the recalculated W and TW.
The recalculated fontsize=convert.toint32 (FontSize bh×d1), the recalculated w= (fullnum×fontsize+halfnum×fontsize/2), where d1= (TH/2)/(BH), fullNum is the number of full-angle characters in the display content, and HalfNum is the number of half-angle characters in the display content; if the recalculated W is less than or equal to TW, the display content is typeset according to the multi-line text display centering layout, and if the recalculated W is more than TW, the display content is displayed in a left scrolling mode according to the multi-line text display.
The LED asynchronous display screen self-adaptive mass-sending system comprises system configuration, LED configuration management and control, operation maintenance and system exit, and the 4 parts are main menus of the system. The system configuration comprises system menu management, administrative division management, user authority category, system user management, terminal attribution classification and terminal point position configuration, and the 6 parts are primary menus under the system configuration in the main menu. The system user management is set on the basis of system menu management and user authority category, and the terminal point position configuration is set on the basis of administrative division management and terminal attribution classification.
The LED configuration management and control module comprises display screen terminal configuration, terminal plan management, program group sending and program inserting, wherein the display screen terminal configuration is related parameters of all display screens in a configuration system; the terminal plan management is plan content information when program release is carried out on a basic screen; program group sending is to select a plan and then issue programs of a plurality of terminals, and the font size is scaled according to two modes in the application; the program inserting is to temporarily issue a program with inserting property to the display screen, and the content is not displayed after the appointed display time is reached; the operation maintenance comprises operation log management and a terminal network state, wherein the operation log management records all operation related records of a user in the system, and the terminal network state displays the current network state of all display screens in the system and is online or offline. The display screen terminal configuration, terminal plan management, program group distribution, program insertion, operation log management and terminal network state are in the prior art, and are not described here in detail.
Wherein, the system configuration: see the following two-level menu, system menu management: managing each relevant control menu (a primary menu and a secondary menu) of the system; administrative division management: unified management and correction are carried out on domestic administrative division information; user rights category: different users set different authorities, each authority can set different system menus; and (3) system user management: the operation users are managed, and different users can set different user rights; terminal attribution classification: configuring the display to fall under that category, such as xx high speed; terminal point position configuration: and configuring specific installation position information of the display screen. LED configuration management and control: and carrying out configuration management on the display screen and managing a plan of a program sent by a user. And (3) operation maintenance: and recording all operation logs of the user and the terminal network state of the current display screen. System exit: and exiting the system. The system configuration, operation maintenance and system exit are all prior art and are not described in detail herein.
The operation process of the LED asynchronous display screen self-adaptive mass-sending system comprises the following steps: (1) Selecting a plan to be sent in groups, wherein one plan can be selected or a plurality of plans can be selected; (2) Selecting a terminal display screen, wherein one or a plurality of terminal display screens can be selected; (3) Calculating the font size of the display screen of the terminal according to the calculation rules of the mode I and the mode II; and (4) multi-thread distribution of programs by the sub-terminals.
According to the LED asynchronous display screen self-adaptive mass-sending realization method, one display screen with the smallest height value is selected as a basic screen in all display screen terminals configured by a user, the font size of a pre-plan in a system is calculated and set according to the screen height pixel value of the basic screen, when a message is sent in a mass-sending mode, the height ratio of a sending terminal to the basic screen is compared, and then the display font size is self-adaptively matched with the screen height of the display screen according to various related algorithms. According to the method, the screen height of the basic screen is used as a reference, the font size of the basic screen is calculated, the font size of the mass-sending terminal and the width occupied by display content are calculated according to the font size of the basic screen, the calculated font size of the mass-sending terminal is compared with the screen width of the mass-sending terminal, so that the fact that the content should be displayed in a layout mode of the mass-sending terminal is judged, the mass-sending terminal can perform self-adaptive matching processing according to the font size of the basic screen and the size of the display screen of the mass-sending terminal, the layout of the display content is coordinated and adapted with the mass-sending terminal, the sending speed is improved, and the display effect is improved. The font size of the basic screen can be used as a parameter to calculate the font size and display content of the mass-sending terminal, and the mass-sending terminal can automatically adjust the size and arrangement layout of the display content according to the font size of the basic screen. The font size of the mass-sending terminal is calculated by taking the ratio of the screen height of the mass-sending terminal to the screen height of the basic screen and the font size of the basic screen as parameters, and the display content in the mass-sending terminal can be calculated by the font size of the mass-sending terminal, so that the display layout mode of the mass-sending terminal is judged to be used for displaying the display content. When the calculated occupied width of the display content is larger than the screen width of the mass-sending terminal, the font size of the display content needs to be readjusted, the new font size of the mass-sending terminal is recalculated, and the occupied width of the new display content is calculated, so that the occupied width of the display content is readjusted to the screen width of the mass-sending terminal, and the mode that the display content is arranged and laid out by the mass-sending terminal is determined.
Working principle:
selecting a plan needing mass-sending in the self-adaptive mass-sending system of the LED asynchronous display screen, selecting and designating a basic screen from the terminal configuration of the display screen, marking the screen height of the basic screen as BH, and marking the screen width of the basic screen as BW; and selecting mass-sending terminals needing mass-sending display contents from a plurality of display screens, wherein the screen height of each mass-sending terminal is recorded as TH, and the screen width is recorded as TW.
Selecting whether to adjust the zoom display content according to the requirement of a user, if the font size required to be displayed on the group-sending terminal by the user is the same as that of the basic screen, setting a mode one, namely setting a limited font size FontSize GD, wherein the font size fontsize=fontsize GD of the group-sending terminal, and calculating the occupied width W=FullNum, fontsize+HalfNum (FontSize/2); in the mode one, if W is less than or equal to TW, the display content is typeset according to the single-line text display and is arranged in the middle, and if W is more than TW, the display content is displayed and scrolled left according to the single-line text.
If the user needs that all the group sending terminals display content is matched with the screen height, setting a mode two, namely calculating the font size FontSizeBH, fontSizeBH =convert.ToInt32 ((BH 3)/4) -1) of the basic screen by taking BH as a reference, and calculating the width W=FullNum+FontSizeBH+HalfNum (FontSizeBH 2) occupied by characters of the display content; by comparing the size relation between W and BW, judging whether the value of FontSizeBH is proper, if W is less than or equal to BW, adopting the calculated FontSizeBH, if W is more than BW, recalculating the font size of the basic screen, and displaying all characters meeting the display content in one line completely, wherein after recalculation, fontSizeBH=BW/2+FullNum.
Calculating font size FontSize of the group sending terminal and width W occupied by display content according to FontSize BH, wherein fontsize=convert.toint32 (FontSize BH) and w=fullnum+halfsum (FontSize/BH), wherein d=th/BH; if W is less than or equal to TW, typesetting the display content according to the central layout of the single-line text display, if W is more than TW, judging whether the display content is displayed according to the single-line text display to scroll left or is displayed according to the multiple lines of text display, if d is less than 2, displaying the display content according to the single-line text display to scroll left, and if d is more than or equal to 2, recalculating the self-adaptive font size FontSize of the mass sending terminal and the occupied width W of the display content.
Recalculated fontsize=convert.toint32 (FontSize bh×d1), recalculated w= (fullnum×fontsize+halfnum×fontsize/2), where d1= (TH/2)/(BH); if the recalculated W is less than or equal to TW, the display content is typeset according to the multi-line text display centering layout, and if the recalculated W is more than TW, the display content is displayed in a left scrolling mode according to the multi-line text display.
The foregoing description of the preferred embodiments of the application is not intended to be limiting, but rather is intended to cover all modifications, equivalents, alternatives, and improvements that fall within the spirit and scope of the application.

Claims (6)

1. The self-adaptive mass-sending realization method of the LED asynchronous display screen is characterized by comprising the following steps of:
s1, selecting a display screen with the minimum terminal height as a reference basic screen, wherein the screen height is recorded as BH, and the screen width is recorded as BW;
s2, setting a predetermined font size mode: calculating font size FontSizeBH of a basic screen according to BH, calculating width W occupied by display content according to FontSizeBH, and finally determining the value of FontSizeBH by comparing the size relation of W and BW;
fontszebh=convert.toint32 ((bh×3)/(4) -1), w=fullnum×fontszebh+halfnum×fontszebh+halfnum (fontszebh/(2); if W is less than or equal to BW, the calculated fontsize bh is adopted, if W is greater than BW, the font size of the basic screen is recalculated, so that all characters meeting the display content can be displayed completely in one line, and the recalculated fontsize bh=bw/(HalfNum/2+fullnum), wherein FullNum is the number of full-angle characters in the display content, and HalfNum is the number of half-angle characters in the display content;
s3, selecting a mass-sending terminal needing mass-sending display content, wherein the screen height is recorded as TH, and the screen width is recorded as TW;
s4, calculating the font size FontSize of the mass-sending terminal according to the FontSizeBH value finally determined in the step S2, calculating the width W occupied by the display content according to the FontSize, and judging whether the layout and typesetting can be displayed in the middle according to a single-line text by comparing the size relation between W and TW;
s5, if the central layout typesetting can not be displayed according to the single-line text in the step S4, calculating FontSize and W again, judging the size relation between W and TW again, and judging whether the central layout typesetting can be displayed according to the multi-line text.
2. The method according to claim 1, wherein in step S4, fontsize=convert.toint32 (FontSize BH) w=fullnum+halfsum (FontSize/2), wherein d=th/BH; fullNum is the number of full-angle characters in the display content, and HalfNum is the number of half-angle characters in the display content.
3. The method for realizing self-adaptive mass-sending of the LED asynchronous display screen according to claim 2, wherein in the step S4, if W is less than or equal to TW, the display content is typeset according to the single-line text display centering layout.
4. The method for implementing adaptive mass-sending of an LED asynchronous display screen according to claim 2, wherein in step S5, if W is greater than TW, the display content is displayed according to a single line of text and scrolled to the left by comparing the size of d, if d is less than 2, if d is greater than or equal to 2, fontSize and W need to be recalculated, and by comparing the recalculated W with TW, it is determined whether the display content is typeset according to a central layout of a multi-line of text display or scrolled to the left according to a multi-line of text display.
5. The method of claim 4, wherein in step S5, the recalculated fontsize=overt.toint32 (FontSize BH) d1, the recalculated w= (FullNum x fontsize+halfnum x (FontSize/2)), where d1= (TH/2)/(BH), fullNum is the number of full-angle characters in the display content, and HalfNum is the number of half-angle characters in the display content.
6. The method for realizing self-adaptive mass-sending of the LED asynchronous display screen according to claim 5, wherein if the recalculated W is less than or equal to TW, the display content is displayed in a centered layout according to a plurality of lines of text, and if the recalculated W is more than TW, the display content is displayed in a left scrolling mode according to a plurality of lines of text.
CN202310960495.1A 2023-08-02 2023-08-02 LED asynchronous display screen self-adaptive mass-sending realization method Active CN116680034B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310960495.1A CN116680034B (en) 2023-08-02 2023-08-02 LED asynchronous display screen self-adaptive mass-sending realization method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310960495.1A CN116680034B (en) 2023-08-02 2023-08-02 LED asynchronous display screen self-adaptive mass-sending realization method

Publications (2)

Publication Number Publication Date
CN116680034A CN116680034A (en) 2023-09-01
CN116680034B true CN116680034B (en) 2023-10-27

Family

ID=87784043

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310960495.1A Active CN116680034B (en) 2023-08-02 2023-08-02 LED asynchronous display screen self-adaptive mass-sending realization method

Country Status (1)

Country Link
CN (1) CN116680034B (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201270524Y (en) * 2008-08-18 2009-07-08 北京竞业达数字系统科技有限公司 Text publication terminal
CN102420855A (en) * 2011-11-17 2012-04-18 浙江省公众信息产业有限公司 Method and system for displaying and playing by light-emitting diode (LED) terminal as well as server
CN105468382A (en) * 2016-02-01 2016-04-06 浙江慧脑信息科技有限公司 Adaptive layout programming method
CN105718594A (en) * 2016-01-29 2016-06-29 四川长虹电器股份有限公司 Self-adaptive interface display method for intelligent terminal
CN107393494A (en) * 2017-08-17 2017-11-24 福建星网锐捷通讯股份有限公司 A kind of font dot matrix display methods and storage device based on LCDs
CN107797801A (en) * 2017-10-20 2018-03-13 江苏电力信息技术有限公司 A kind of adaptation method based on a variety of interface of mobile terminal
CN110837617A (en) * 2019-10-11 2020-02-25 平安科技(深圳)有限公司 Webpage self-adaptive layout method, server and computer readable storage medium
CN112102442A (en) * 2020-09-04 2020-12-18 卡莱特(深圳)云科技有限公司 Image-text walking setting method and device for LED display screen
CN112307713A (en) * 2020-10-27 2021-02-02 广州朗国电子科技有限公司 Automatic text typesetting method and system based on Android system
CN112486488A (en) * 2020-12-07 2021-03-12 浪潮云信息技术股份公司 Page self-adaption method applied to government affair service terminal

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100787977B1 (en) * 2006-03-30 2007-12-24 삼성전자주식회사 Apparatus and method for controlling size of user data in a portable terminal
US7712045B2 (en) * 2006-11-10 2010-05-04 Igt Displaying content for various aspect ratios
US8719724B2 (en) * 2011-03-16 2014-05-06 Honeywell International Inc. Method for enlarging characters displayed on an adaptive touch screen key pad

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201270524Y (en) * 2008-08-18 2009-07-08 北京竞业达数字系统科技有限公司 Text publication terminal
CN102420855A (en) * 2011-11-17 2012-04-18 浙江省公众信息产业有限公司 Method and system for displaying and playing by light-emitting diode (LED) terminal as well as server
CN105718594A (en) * 2016-01-29 2016-06-29 四川长虹电器股份有限公司 Self-adaptive interface display method for intelligent terminal
CN105468382A (en) * 2016-02-01 2016-04-06 浙江慧脑信息科技有限公司 Adaptive layout programming method
CN107393494A (en) * 2017-08-17 2017-11-24 福建星网锐捷通讯股份有限公司 A kind of font dot matrix display methods and storage device based on LCDs
CN107797801A (en) * 2017-10-20 2018-03-13 江苏电力信息技术有限公司 A kind of adaptation method based on a variety of interface of mobile terminal
CN110837617A (en) * 2019-10-11 2020-02-25 平安科技(深圳)有限公司 Webpage self-adaptive layout method, server and computer readable storage medium
CN112102442A (en) * 2020-09-04 2020-12-18 卡莱特(深圳)云科技有限公司 Image-text walking setting method and device for LED display screen
CN112307713A (en) * 2020-10-27 2021-02-02 广州朗国电子科技有限公司 Automatic text typesetting method and system based on Android system
CN112486488A (en) * 2020-12-07 2021-03-12 浪潮云信息技术股份公司 Page self-adaption method applied to government affair service terminal

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
Chen Yan ,.Design of LED Display Screen Based on Soft Font Library.ICSCC '19: Proceedings of the 2019 5th International Conference on Systems, Control and Communications.2020,全文. *
仿真培训系统在Android设备上屏幕自适应研究;刘贤梅;满强;;信息技术(第03期);全文 *
高分屏下的软件大小的自适应调整;涂焱楚;;电子技术与软件工程(第21期);全文 *

Also Published As

Publication number Publication date
CN116680034A (en) 2023-09-01

Similar Documents

Publication Publication Date Title
US6348936B1 (en) Method and apparatus for graphical selection of data
US7944456B2 (en) Content optimization for receiving terminals
US9329827B2 (en) Cropping of images for display on variably sized display devices
US20040070593A1 (en) Mosaic-like user interface for video selection and display
CN112416346B (en) Interface color scheme generation method, device, equipment and storage medium
CN113660514B (en) Method and system for modifying user interface color in connection with video presentation
EP1590186A2 (en) Mosaic-like user interface for video selection and display
US20140149926A1 (en) Apparatus, method and computer readable recording medium for arranging a plurality of items automatically in a canvas
JP2008262306A (en) Layout adjustment device, layout adjustment method, layout adjustment program and recording medium
CN111796826B (en) Bullet screen drawing method, device, equipment and storage medium
CN116680034B (en) LED asynchronous display screen self-adaptive mass-sending realization method
US20040034829A1 (en) Layout system, layout program, and layout method
CN116414510B (en) Display adjustment method based on intelligent management cockpit
CN112068834A (en) JS-based data rendering method and device
CN109656647B (en) Chart picture generation method, device and equipment and computer readable storage medium
CN102082925B (en) A kind of fill method of subtitle template and device
CN103164192A (en) Individuation interface forming method and system for set top box
JP6924544B2 (en) Cartoon data display system, method and program
WO2011067785A2 (en) Dynamic content creation, modification and distribution from single source of content in online and offline scenarios
US20230300389A1 (en) Methods and apparatus for processing media content
KR101430964B1 (en) Method for controlling display
WO2024088375A1 (en) Bullet comment presentation method and apparatus, device, and storage medium
EP3944198A1 (en) Zooming and scaling
CN115550184A (en) Bandwidth control method and system
CN112395033A (en) Webpage self-adaption method and related product

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