Display device and electronic drawing board optimization method
By optimizing the operating boundaries of the electronic drawing board after the smart TV screen is rotated, the problem of losing boundary information after rotation is solved, ensuring that users can continue editing operations on the rotated screen, and improving the user experience.
Patent Information
- Application Number
- CN202111414126.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2021-06-30
- Filing Date
- 2021-11-25
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2041-11-25
AI Technical Summary
After the smart TV screen is rotated, the operation boundary information of the target picture and coloring card in the electronic drawing board will be lost, resulting in the user being unable to operate the picture after rotation, affecting the user experience.
By optimizing the electronic drawing board after the screen is rotated, the rotation component is used to drive the display to rotate and scale the user interface, and the operation boundary is updated to maintain and restore the operation boundary information in the second posture, ensuring that the user can continue to perform editing operations on the rotated screen. .
It effectively solves the problem of losing operation boundary information after the screen is rotated, ensuring that users can continue coloring and editing operations on the rotated screen, improving the user experience.
Smart Images

Figure CN114115637B_ABST
Abstract
Description
[0001] This application claims priority to a Chinese patent application filed with the China Patent Office on June 30, 2021, with application number 202110736544.4 and invention name “Display device and electronic drawing board optimization method”, the entire contents of which are incorporated by reference in this application. Technical Field
[0002] The present application relates to the technical field of display devices, and in particular to a display device and an electronic drawing board optimization method. Background Art
[0003] Display devices, such as smart TVs, can provide users with playback images such as audio, video, and pictures. Compared with traditional TVs that provide users with live TV programs through data broadcasting, smart TVs generally focus on online interactive media, Internet TV, and on-demand streaming media, which can provide users with richer content and services, such as online videos, online games, and other applications and service content. With the popularity of smart TVs and the continuous updating of multimedia educational TVs, more and more teaching, entertainment, and children's educational applications can be used on smart TVs. The drawing board is very important for both teaching and application, and for children's educational purposes. Therefore, smart TVs can provide users with different types of target pictures in the electronic drawing board for users to color.
[0004] On a smart TV that supports screen rotation, when the screen rotates, the electronic drawing board needs to rotate synchronously with the screen. Currently, when the screen of the smart TV is rotated, due to the different sizes of the electronic drawing board under the horizontal and vertical screens, if it is not restored after rotation, the boundary of the target image and the operation boundary information of the coloring card will be lost. Summary of the invention
[0005] The present application provides a display device and an electronic drawing board optimization method, which optimizes the electronic drawing board after the screen is rotated, thereby solving the problem that the boundary information of the target image and the operation boundary information of the coloring card in the electronic drawing board will be lost after the screen is rotated in the existing display device.
[0006] In a first aspect, the present application provides a display device, including:
[0007] a display configured to switch between a first posture and a second posture and to display a user interface;
[0008] A rotating component, used for driving the display to switch between a first posture and a second posture;
[0009] Touch components, used to respond to editing operations input by users;
[0010] The controller is configured as:
[0011] Displaying a first picture on the display in the first posture, the first picture includes an operation boundary and an operable area surrounded by the operation boundary, and the user can perform touch editing in the operable area;
[0012] In response to the input rotation operation, controlling the rotation component to drive the display to rotate from the first posture to the second posture, and rotating and / or scaling the first picture on the user interface to obtain the second picture, and updating the operation boundary;
[0013] The second picture is displayed on the display in the second posture, and in response to the input editing operation, the operable area of the second picture is defined based on the updated operation boundary.
[0014] In a second aspect, the present application also provides an electronic drawing board optimization method, comprising the following steps:
[0015] Displaying a first picture on the display in the first posture, the first picture includes an operation boundary and an operable area surrounded by the operation boundary, and the user can perform touch editing in the operable area;
[0016] In response to the input rotation operation, controlling the rotation component to drive the display to rotate from the first posture to the second posture, and rotating and / or scaling the first picture on the user interface to obtain the second picture, and updating the operation boundary;
[0017] The second picture is displayed on the display in the second posture, and in response to the input editing operation, the operable area of the second picture is defined based on the updated operation boundary.
[0018] As can be seen from the above technical solutions, the present application provides a display device and an electronic drawing board optimization method, wherein the controller of the display device is configured to: display a first image on the display in a first posture, the first image includes an operation boundary and an operable area formed by the operation boundary, and the user can perform touch editing in the operable area, and in response to the input rotation operation, control the rotation component to drive the display to rotate from the first posture to the second posture, and rotate and / or scale the first image on the user interface to obtain a second image, update the operation boundary, display the second image on the display in the second posture, and in response to the input editing operation, limit the operable area of the second image based on the updated operation boundary. By optimizing the electronic drawing board after the screen is rotated, the problem that the boundary of the target image in the electronic drawing board and the operation boundary information of the coloring card are lost after the screen is rotated in the existing display device is solved. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] In order to more clearly illustrate the implementation methods in the embodiments of the present application or the related technologies, the following is a brief introduction to the drawings required for use in the embodiments or the related technology descriptions. Obviously, the drawings described below are some embodiments of the present application, and a person skilled in the art can also obtain other drawings based on these drawings.
[0020] Figure 1A shows a usage scenario of a display device according to some embodiments;
[0021] Figure 1B A rear view of a display device provided in some embodiments of the present application;
[0022] Figure 2 shows a hardware configuration block diagram of a control device 100 according to some embodiments;
[0023] Figure 3 shows a hardware configuration block diagram of a display device 200 according to some embodiments;
[0024] Figure 4 shows a software configuration diagram in a display device 200 according to some embodiments;
[0025] Figure 5 An electronic drawing board interface in a display in a feasible embodiment is shown;
[0026] Figure 6 A user interface in a display in a feasible embodiment is shown;
[0027] Figure 7 A schematic diagram showing an application list in a feasible embodiment;
[0028] Figure 8 A schematic diagram of an electronic drawing board in a feasible embodiment is shown;
[0029] Fig. 9 A schematic diagram of a target image in a feasible embodiment is shown;
[0030] Fig.10 A schematic diagram showing a toolbar corresponding to a brush control in a feasible embodiment;
[0031] Fig.11 A schematic diagram showing color options in a toolbar in a feasible embodiment;
[0032] Fig.12 A schematic diagram showing a first picture displayed on an electronic drawing board in a feasible embodiment is shown;
[0033] Fig.13 A schematic diagram showing a second picture displayed on an electronic drawing board in a feasible embodiment is shown;
[0034] Fig.14 is a schematic diagram of a first pixel area compensation in an embodiment;
[0035] Fig.15 is a schematic diagram of a second pixel area compensation in an embodiment;
[0036] Fig.16 is a schematic diagram of a third pixel area compensation in an embodiment;
[0037] Fig.17 A schematic diagram showing a first picture displayed on an electronic drawing board in another feasible embodiment is shown;
[0038] Fig.18 A schematic diagram of a process flow of a feasible embodiment is shown;
[0039] Fig.19 A schematic diagram showing a second picture displayed on an electronic drawing board in another feasible embodiment is shown;
[0040] Fig. 20 This is a flow chart of an electronic drawing board optimization method according to an exemplary embodiment of the present application. DETAILED DESCRIPTION
[0041] In order to make the purpose and implementation method of the present application clearer, the exemplary implementation method of the present application will be clearly and completely described below in conjunction with the drawings in the exemplary embodiments of the present application. Obviously, the described exemplary embodiments are only part of the embodiments of the present application, rather than all the embodiments.
[0042] It should be noted that the brief description of terms in this application is only for the convenience of understanding the embodiments described below, and is not intended to limit the embodiments of this application. Unless otherwise specified, these terms should be understood according to their common and usual meanings.
[0043] The terms "first", "second", "third", etc. in the specification and claims of this application and the above drawings are used to distinguish similar or similar objects or entities, and do not necessarily mean to limit a specific order or sequence, unless otherwise noted. It should be understood that the terms used in this way can be interchangeable under appropriate circumstances.
[0044] The terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover but not exclude inclusion, for example, a product or device comprising a list of components is not necessarily limited to all the components expressly listed but may include other components not expressly listed or inherent to such product or device.
[0045] The term "module" refers to any known or later developed hardware, software, firmware, artificial intelligence, fuzzy logic or combination of hardware and / or software code that is capable of performing the functions associated with that element.
[0046] Figure 1A Schematic diagram of a usage scenario of a display device according to an embodiment. Figure 1A As shown, the display device 200 also performs data communication with the server 400 , and the user can operate the display device 200 through the smart device 300 or the control apparatus 100 .
[0047] In some embodiments, the control device 100 may be a remote controller, and the communication between the remote controller and the display device includes infrared protocol communication or Bluetooth protocol communication, and at least one of other short-range communication methods, to control the display device 200 wirelessly or wired. The user may control the display device 200 by inputting user commands through at least one of buttons on the remote controller, voice input, and control panel input.
[0048] In some embodiments, the display device 200 can also be controlled in a manner other than the control device 100 and the smart device 300. For example, the user's voice command control can be directly received through a module for obtaining voice commands configured inside the display device 200, or the user's voice command control can be received through a voice control device set outside the display device 200.
[0049] In some embodiments, the display device 200 also communicates data with the server 400. The display device 200 may be allowed to communicate via a local area network (LAN), a wireless local area network (WLAN), and other networks. The server 400 may provide various content and interactions to the display device 200. The server 400 may be one cluster or multiple clusters, and may include one or more types of servers.
[0050] In some embodiments, the software steps executed by a step execution subject can be migrated to another step execution subject in data communication with it as needed for execution. Exemplarily, the software steps executed by a server can be migrated to a display device in data communication with it as needed for execution, and vice versa.
[0051] In some embodiments, Figure 1BAs shown, the display device 200 includes a rotating assembly 276, a controller 250, a display 275, a terminal interface 278 extending from a gap on the back panel, and a rotating assembly 276 connected to the back panel, and the rotating assembly 276 can rotate the display 275. From the perspective of viewing the display device from the front, the rotating assembly 276 can rotate the display screen to a vertical screen state, that is, a state in which the vertical side length of the screen is greater than the horizontal side length, and can also rotate the screen to a horizontal screen state, that is, a state in which the horizontal side length of the screen is greater than the vertical side length.
[0052] Figure 2 Schematically shows a block diagram of a configuration of the control device 100 according to an exemplary embodiment. Figure 2 As shown, the control device 100 includes a controller 110, a communication interface 130, a user input / output interface 140, a memory, and a power supply. The control device 100 can receive input operation instructions from the user, and convert the operation instructions into instructions that the display device 200 can recognize and respond to, playing the role of an interactive intermediary between the user and the display device 200.
[0053] In some embodiments, the communication interface 130 is used for communicating with the outside, and includes at least one of a WIFI chip, a Bluetooth module, NFC or an alternative module.
[0054] In some embodiments, the user input / output interface 140 includes at least one of a microphone, a touch pad, a sensor, a button, or alternative modules.
[0055] Figure 3 A hardware configuration block diagram of a display device 200 according to an exemplary embodiment is shown.
[0056] In some embodiments, the display apparatus 200 includes at least one of a tuner 210, a communicator 220, a detector 230, an external device interface 240, a controller 250, a display 260, an audio output interface 270, a memory, a power supply, and a user interface.
[0057] In some embodiments, the controller includes a central processing unit, a video processor, an audio processor, a graphics processor, a RAM, a ROM, and a first interface to an nth interface for input / output.
[0058] The display 260 includes a display screen component for presenting images, and a driving component for driving image display, which is used to receive image signals output from the controller, display video content, image content, and menu control interface components and user control UI interface, etc.
[0059] In some embodiments, the display 260 may be at least one of a liquid crystal display, an OLED display, and a projection display, and may also be a projection device and a projection screen.
[0060] The communicator 220 is a component for communicating with an external device or server according to various communication protocol types. For example, the communicator may include at least one of a Wifi module, a Bluetooth module, a wired Ethernet module, and other network communication protocol chips or near field communication protocol chips, and an infrared receiver. The display device 200 can establish transmission and reception of control signals and data signals with the control device 100 or the server 400 through the communicator 220.
[0061] In some embodiments, the detector 230 is used to collect signals of the external environment or external interaction. For example, the detector 230 includes a light receiver, a sensor for collecting the intensity of ambient light; or, the detector 230 includes an image collector, such as a camera, which can be used to collect external environment scenes, user attributes or user interaction gestures; or, the detector 230 includes a sound collector, such as a microphone, etc., for receiving external sounds.
[0062] In some embodiments, the external device interface 240 may include, but is not limited to, any one or more of the following interfaces: a high-definition multimedia interface (HDMI), an analog or digital high-definition component input interface (component), a composite video input interface (CVBS), a USB input interface (USB), an RGB port, etc. It may also be a composite input / output interface formed by the above multiple interfaces.
[0063] In some embodiments, the controller 250 controls the operation of the display device and responds to user operations through various software control programs stored in the memory. The controller 250 controls the overall operation of the display device 200. For example, in response to receiving a user command for selecting a UI object to be displayed on the display 260, the controller 250 can perform operations related to the object selected by the user command.
[0064] In some embodiments, the object may be any one of the selectable objects, such as a hyperlink, an icon or other operable controls. Operations related to the selected object include: displaying a page, document, image, etc. connected to the hyperlink, or executing a program corresponding to the icon.
[0065] In some embodiments, the user may input a user command in a graphical user interface (GUI) displayed on the display 260, and the user input interface receives the user input command through the graphical user interface (GUI). Alternatively, the user may input a user command by inputting a specific sound or gesture, and the user input interface receives the user input command by recognizing the sound or gesture through a sensor.
[0066] In some embodiments, the "user interface" is a medium interface for interaction and information exchange between the camera application or operating system and the user, which realizes the conversion between the internal form of information and the form acceptable to the user. The commonly used form of user interface is the graphical user interface (GUI), which refers to a user interface related to computer operation displayed in a graphical manner. It can be an interface element such as an icon, window, control, etc. displayed on the display screen of an electronic device, where the control can include at least one of the visual interface elements such as icons, buttons, menus, tabs, text boxes, dialog boxes, status bars, navigation bars, widgets, etc.
[0067] In some embodiments, the user interface 280 is an interface that can be used to receive control input (such as a physical button on the display device body, or other interfaces).
[0068] See also Figure 4 In some embodiments, the system is divided into four layers, from top to bottom, namely, the camera application (Applications) layer (referred to as "application layer"), the camera application framework (Application Framework) layer (referred to as "framework layer"), the Android runtime (Android runtime) and system library layer (referred to as "system runtime library layer"), and the kernel layer.
[0069] In some embodiments, at least one camera application is running in the camera application layer, and these camera applications can be window programs, system settings programs, clock programs, etc. provided by the operating system; or they can be camera applications developed by third-party developers. In specific implementations, the camera application packages in the camera application layer are not limited to the above examples.
[0070] The framework layer provides an application programming interface (API) and programming framework for the camera applications in the camera application layer. The camera application framework layer includes some predefined functions. The camera application framework layer is equivalent to a processing center, which determines the actions to be taken by the camera applications in the application layer. Through the API interface, the camera application can access system resources and obtain system services during execution.
[0071] In some embodiments, the activity manager is used to manage the life cycle of each camera application and the common navigation back function, such as controlling the exit, opening, and back of the camera application. The window manager is used to manage all window programs, such as obtaining the display screen size, determining whether there is a status bar, locking the screen, capturing the screen, and controlling the display window changes (for example, reducing the display window, shaking the display, distorting the display, etc.).
[0072] In some embodiments, the system runtime layer provides support for the upper layer, namely the framework layer. When the framework layer is used, the Android operating system will run the C / C++ library contained in the system runtime layer to implement the functions to be implemented by the framework layer.
[0073] In some embodiments, the kernel layer is a layer between hardware and software. Figure 4 As shown, the kernel layer includes at least one of the following drivers: audio driver, display driver, Bluetooth driver, camera driver, WIFI driver, USB driver, HDMI driver, sensor driver (such as fingerprint sensor, temperature sensor, pressure sensor, etc.), and power driver, etc.
[0074] A drawing board application may be installed in the display device, so that the drawing board function provided by the drawing board application can be used. For example, the drawing board application may provide different types of pictures, and the user may color the pictures.
[0075] The above-mentioned display device may have a touch interaction function, and the user can operate the host by simply touching the display with a finger, thus getting rid of the keyboard, mouse, and remote control operation, making human-computer interaction more straightforward. Based on the above-mentioned display device 200, the display device 200 can support the touch interaction function by adding a touch component. Generally, the touch component can form a touch screen together with the display 260. On the touch screen, the user can input different control instructions through touch operation. For example, the user can input touch instructions such as click, slide, long press, double click, etc., and different touch instructions can represent different control functions.
[0076] To implement the above different touch actions, the touch component can generate different electrical signals when the user inputs different touch actions, and send the generated electrical signals to the controller 250. The controller 250 can extract features from the received electrical signals, thereby determining the control function to be executed by the user based on the extracted features.
[0077] For example, when a user inputs a click touch action at any program icon position in the application interface, the touch component will sense the touch action and generate an electrical signal. After receiving the electrical signal, the controller 250 can first determine the duration of the corresponding level of the touch action in the electrical signal, and when the duration is less than the preset time threshold, it recognizes that the user input is a click touch instruction. The controller 250 then extracts the position features generated by the electrical signal to determine the touch position. When the touch position is within the display range of the application icon, it is determined that the user has input a click touch instruction at the application icon position. Accordingly, the click touch instruction is used to execute the function of running the corresponding application in the current scenario, so the controller 250 can start running the corresponding application.
[0078] For another example, when the user inputs a sliding action in the media display page, the touch component also sends the sensed electrical signal to the controller 250. The controller 250 first determines the duration of the signal corresponding to the touch action in the electrical signal. When it is determined that the duration is greater than the preset time threshold, the position change of the signal generation is judged. Obviously, for interactive touch actions, the position where the signal is generated will change, thereby determining that the user has input a sliding touch command. The controller 250 then determines the sliding direction of the sliding touch command based on the change in the signal generation position, and controls the page turning of the display screen in the media display page to display more media options. Furthermore, the controller 250 can also extract features such as the sliding speed and sliding distance of the sliding touch command, and control the page turning screen according to the extracted features to achieve a hand-following effect, etc.
[0079] Similarly, for touch commands such as double-click and long press, the controller 250 can extract different features, determine the type of touch command through feature judgment, and then execute the corresponding control function according to the preset interaction rules. In some embodiments, the touch component also supports multi-touch, so that the user can input touch actions on the touch screen through multiple fingers, such as multi-finger click, multi-finger long press, multi-finger slide, etc.
[0080] The above touch actions can also be used in conjunction with specific applications to achieve specific functions, such as a drawing board application, so that the display device has a drawing board function. Users can write, draw lines, and perform other operations in the touch interface of such a touch application installed on the display device. The display device can generate touch tracks based on the user's touch actions to achieve the drawing board demonstration or entertainment function. Figure 5 Taking the drawing board application as an example, when the user opens the drawing board application, the display 260 can present a drawing area, and the user can draw a specific touch action trajectory in the drawing area 261 through a sliding touch instruction. The controller determines the touch action pattern through the touch action detected by the touch component, and controls the display 260 to display it in real time to meet the demonstration effect.
[0081] In some embodiments, a plurality of applications may be installed in the display device. Figure 6 The user interface in the display in some embodiments is shown. The user can click "My Applications" in the user interface to view the application list. The application list includes all applications installed on the display device.
[0082] Figure 7A schematic diagram of an application list in some embodiments is shown. The display device may be installed with a drawing board application, a player application, a video chat application, a camera application, and a mirror application. When the application list is displayed on the display, the user can select one of the applications and open it to trigger the interface of the application.
[0083] In some embodiments, when a user starts a drawing board application, the controller can control the display to display an electronic drawing board. An interactive area corresponding to one or more functions of the drawing board application is displayed on the electronic drawing board interface, and the following content can be displayed in the interactive area, such as text, images, icons, key buttons, drop-down menus, check boxes, optional lists, etc. The user can contact the touch screen at a location where interaction is required to interact, thereby interacting with the interactive area. The display device detects the contact and responds to the detected contact by performing a corresponding operation.
[0084] In some embodiments, the electronic drawing board includes a coloring area and a control area. The coloring area is an area where content can be input. The control area can centrally display controls corresponding to one or more functions of the drawing board application, such as a brush control, an erase control, a dye bucket control, etc. The user can use each control to perform corresponding operations and can also set the parameters of each control, such as setting the color and line style of the brush control.
[0085] Figure 8 The schematic diagram of an electronic drawing board in a feasible embodiment is shown. The electronic drawing board includes a control area 810 and a coloring area 820. The coloring area 810 is used to display a target image. The control area includes a brush control 8101, an erase control 8102, a screenshot control 8103, a rotation control 8104, and a return control 8105. The brush control 8101 is used for users to select different brush tools, such as a pen tool, a pencil tool, a brush tool, and a brush tool. Users can select according to their own needs to display different effects in the coloring area 810 of the electronic drawing board. The erase control 8102 is used for users to clear the coloring operation that has been performed. The screenshot control 8103 is used for users to save the completed coloring. The rotation control 8104 is used to rotate the target image displayed on the electronic drawing board, so that users can perform coloring operations in various directions. The return control 8105 is used for users to go back to the previous step or go to the next step in the coloring operation in the coloring area 810, making the control method more flexible.
[0086] In some embodiments, in response to a user inserting a target image into a drawing board application, the target image is displayed in a coloring area of the electronic drawing board, and the user can perform operations such as coloring on the target image. Fig. 9A schematic diagram of a target image in some embodiments is shown, wherein the target image includes a color-filled area 910 and an area boundary 920, and the user can color the color-filled area. At the same time, the user can also clear the color that has been filled in the color-filled area.
[0087] For example, Fig. 9 In the target image shown, the black line is the region boundary 920, and the user can fill any color in the color filling region 910 according to his / her own preference to complete the coloring operation on the target image.
[0088] Fig.10 A schematic diagram of a toolbar corresponding to a brush control in some embodiments is shown. When a user clicks a color option in the toolbar, the controller can control the display to display the color of the brush control. In some embodiments, the user can select the brush control, and the brush control is in a picking state. At this time, the user can control the brush control to perform corresponding operations in the target image. When it is detected that the brush control is selected, the controller can also control the display to display the toolbar corresponding to the brush control, and parameter information such as the color, line thickness, and line style of the brush can be selected in the toolbar.
[0089] After the user has selected various parameter information of the brush control, the user can input content based on touching the coloring area. The input content is the touch track of the user on the coloring area.
[0090] In some embodiments, the brush control color context includes all colors that the brush control can use and the current color of the brush control. Fig.11 A schematic diagram of color options in the toolbar in some embodiments is shown. The user can view the color currently being used by the brush control. The user can also set the color of the brush control by himself.
[0091] In some embodiments, on a display device that supports screen rotation, when the screen rotates, the electronic drawing board can rotate synchronously with the screen.
[0092] However, when the screen of the smart TV is rotated, due to the different sizes of the electronic drawing board in the horizontal / vertical screen, the operation boundary information of the target image in the electronic drawing board will be lost after the rotation, and the coloring function will be unavailable, so that the user cannot perform any operation on the target image after the screen is rotated, which seriously affects the user experience. When the electronic drawing board is switched from the horizontal screen state to the vertical screen state, it only scales the displayed image without recording the boundary pixels of the target image in the horizontal screen state. When it is switched to the vertical screen state, it only displays the scaled target image without effectively converting the boundary pixels in the target image. Since the boundary pixels are not displayed in the target image, the user cannot color the image, which seriously affects the user experience.
[0093] The following combination Fig.12 and Fig.13 , illustrating the interface display optimization process of the electronic drawing board when the screen of the display device is rotated. Among them, the first picture is the target picture displayed in the electronic drawing board in the horizontal screen state, and the first boundary pixel is the pixel set of the operation boundary in the first picture. The second picture is the target picture displayed in the electronic drawing board in the vertical screen state, and the second boundary pixel is the pixel set of the operation boundary in the second picture.
[0094] Fig.12 is an exemplary electronic drawing board interface, such as Fig.12 As shown, the electronic drawing board includes a coloring area and a control area. The coloring area is used to display the first picture. The user can use the control in the control area to operate the operable area in the first picture. The operable area is limited by the operation boundary. It should be noted that the boundary area is a set of boundary pixels located on the operation boundary.
[0095] In some embodiments, in the electronic drawing board, the format of the target image displayed in the coloring area is one of JPG, PNG or SVG formats. By setting the format of the target image to a bitmap file, when the user operates the target image, it is convenient to accurately obtain the position information of the boundary pixels of the target image. When the screen rotates from the horizontal screen state (portrait screen state) to the vertical screen state (landscape screen state), the position information of the boundary pixels in the vertical screen state (landscape screen state) can be quickly calculated based on the position information of the boundary pixels of the target image in the horizontal screen state (portrait screen state), so as to update the electronic drawing board interface according to the position information of the boundary pixels in the vertical screen state (landscape screen state) to obtain the operable area. After the display screen switches from the first posture to the second posture, the corresponding second image in the vertical screen state (landscape screen state) is displayed in the electronic drawing board, and the user can perform subsequent operations on the operable area on the second image.
[0096] In some embodiments, first boundary position information of the first image is obtained in the first posture of the display screen, and the first boundary position information is stored. The first image includes an operable area and an operation boundary. Since the target image is composed of a certain number of pixels, the first boundary pixels (X, Y) are obtained by obtaining pixels located at the operation boundary position. The first boundary pixels (X, Y) are a set of pixels located at the region boundary in the first image.
[0097] In some embodiments, obtaining the first boundary pixel (X, Y) of the first image specifically includes obtaining the operation boundary color of the first image, and determining in turn whether the color of each pixel on the first image is the same as the boundary color; if they are the same, the current pixel is the first boundary pixel (X, Y).
[0098] For example, when the border color of the first image is black, the controller establishes a rectangular coordinate system on the first image, sequentially determines pixel information of pixels whose color is black, and obtains corresponding rectangular coordinates (X, Y). In the first image, the set of rectangular coordinates (X, Y) corresponding to all pixels whose color is black is the first border pixel (X, Y), and the first border pixel (X, Y) is stored in the border position table.
[0099] Next, when the user performs a gesture conversion on the display screen, a second image is generated based on the first image. It should be understood that generating the second image based on the first image means performing a scaling process on the first image and a conversion process on the boundary pixels to obtain the second image. In other words, the first image and the second image are different in size, but the image information presented by the two is the same.
[0100] In some embodiments, in response to a screen rotation operation, a second image is obtained based on the first image, including: calculating a scaling ratio a based on the size of the electronic drawing board displayed before and after the screen rotation, calculating a second boundary pixel (X1, Y1) corresponding to the first boundary pixel (X, Y) based on the scaling ratio a, and generating a second image based on the second boundary pixel (X1, Y1).
[0101] For example, when the display screen rotates from a first posture (landscape state) to a second posture (portrait state), the scaling ratio a is calculated according to the size of the electronic drawing board displayed in the landscape state and the size of the electronic drawing board displayed in the portrait state, and the second boundary pixels (X1, Y1) corresponding to the first boundary pixels (X, Y) in the first image are calculated in sequence according to the scaling ratio a, and a second image is generated according to the second boundary pixels (X1, Y1). When the screen rotation is completed, the second image is displayed on the electronic drawing board, and in response to the input editing operation, the operable area of the second image is limited based on the second boundary pixels (X1, Y1).
[0102] For example, when the display screen rotates from a first posture (portrait state) to a second posture (landscape state), the zoom ratio a is calculated according to the size of the electronic drawing board displayed in the landscape state and the size of the electronic drawing board displayed in the portrait state, and the second boundary pixels (X1, Y1) corresponding to the first boundary pixels (X, Y) in the first image are calculated in sequence according to the zoom ratio a, and a second image is generated according to the second boundary pixels (X1, Y1). When the screen rotation is completed, the second image is displayed on the electronic drawing board, and in response to the input editing operation, the operable area of the second image is limited based on the second boundary pixels (X1, Y1).
[0103] In some embodiments, the second boundary pixel (X1, Y1) corresponding to the first boundary pixel (X, Y) is calculated according to the scaling ratio a, including: if the scaling ratio a is equal to 1, (X1, Y1) = (X, Y); if the scaling ratio a is not equal to 1, (X1, Y1) = (aX, aY).
[0104] Specifically, if the scaling ratio a is greater than 1, the corresponding image needs to be enlarged; if the scaling ratio a is less than 1, the corresponding image needs to be reduced.
[0105] For example, when the scaling ratio is 2, if the rectangular coordinates of one pixel in the first boundary pixel (X, Y) in the first image are (2, 2), the second boundary pixel (X1, Y1) is calculated according to the scaling ratio 2, and the second boundary pixel is (4, 4). All first boundary pixels (X, Y) are calculated in sequence to obtain the corresponding second boundary pixels (X1, Y1), and the corresponding second image is generated according to the second boundary pixels (X1, Y1).
[0106] It should be noted that when the screen is rotated from landscape to portrait and from portrait to landscape, the first picture is converted into the second picture according to the zoom ratio, and the first picture and the second picture have the same aspect ratio. During the conversion process, the aspect ratio of the first picture and the second picture will not change.
[0107] Finally, if Fig.13 As shown, when the screen rotation is completed, the second picture is displayed on the electronic drawing board, including the operable area and the control area, and the user can use the controls in the control area to operate the operable area of the second picture.
[0108] In some embodiments, calculating the second boundary pixel (X1, Y1) corresponding to the first boundary pixel (X, Y) according to the scaling ratio a further includes:
[0109] Determine whether the scaling ratio a is greater than 1;
[0110] If the scaling ratio is greater than 1, domain compensation is performed on the second boundary pixel (X1, Y1). It should be noted that when the image is enlarged in equal proportion, since the target image is a bitmap composed of pixels, the nature of the bitmap causes the quality of the target image to change when it is enlarged, and the image clarity of the target image will be seriously reduced. By performing domain compensation on the second boundary pixel, the image quality of the second image can be effectively improved, making the second image clearer and effectively improving the user viewing experience.
[0111] In some embodiments, if the scaling ratio is greater than 1, performing area compensation on the second boundary pixel (X1, Y1) includes:
[0112] If the scaling factor a is within the first interval, see Fig.14, all two adjacent pixels of the second pixel position information (X1, Y1) are used as compensation pixels, and the color of the compensation pixel is filled with the same color as the second pixel position information (X1, Y1); in some embodiments, the first interval range is 1 <a<1.5。
[0113] If the scaling factor a is within the second interval, see Fig.15 , all four pixels adjacent to the second pixel position information (X1, Y1) are used as compensation pixels, and the color of the compensation pixels is filled with the same color as the second pixel position information (X1, Y1); in some embodiments, the second interval range is 1.5 <a<2。
[0114] If the scaling factor a is within the third interval, see Fig.16 , all the 8 adjacent pixels of the second pixel position information (X1, Y1) are used as compensation pixels, and the color of the compensation pixels is filled with the same color as the second pixel position information (X1, Y1); in some embodiments, the third interval range is 2 <a。
[0115] The following combination Figures 17 to 19 , indicating that after the user has colored the target image, when the display screen switches from the first posture to the second posture, the interface display optimization process of the electronic drawing board.
[0116] Fig.17 is an exemplary electronic drawing board interface, such as Fig.17 As shown, the electronic drawing board includes a coloring area and a control area. The coloring area is used to display a first picture, and the user has performed a coloring operation on the first picture.
[0117] For example, when the boundary color of the first image is black, the controller establishes a rectangular coordinate system on the target image, sequentially determines the pixel information of the pixel color being black, and obtains the corresponding rectangular coordinates (X, Y). In the first image, the set of rectangular coordinates (X, Y) corresponding to all pixels of black color is the first boundary pixel (X, Y), and the first boundary pixel (X, Y) is stored in the boundary position table.
[0118] Next, when the user rotates the screen, a second image is generated based on the first image.
[0119] In some embodiments, see Fig.18 ,include:
[0120] S100: responding to a rotation operation input;
[0121] S110: Determine whether the user has performed a coloring operation on the first picture;
[0122] S120: if the user has performed a coloring operation on the first picture on the display in the first posture, obtaining first coloring position information, where the first coloring position information is position information of a user-colored area in the first picture and a corresponding color;
[0123] S130: calculating second coloring position information corresponding to the first coloring position information according to the scaling ratio, where the second coloring position information is position information of a user-colored area in the second image and a corresponding color;
[0124] S140: On the display in the second posture, display a corresponding color in the coloring area in the second picture according to the second coloring position information.
[0125] Finally, if Fig.19 As shown, when the screen is rotated, the second picture is displayed on the display in the second posture, and in response to the input editing operation, the operable area of the second picture is limited based on the second boundary position information. In the second picture, a control area is also included. The operable area is used to display the second picture that has been colored by the user. The user can use the control in the control area to continue to operate the colored second picture. When the user has completed part of the coloring of the target picture, in the scenario of rotating the screen, the display switches from the first posture to the second posture, which can effectively save the coloring operation that the user has performed, avoiding the loss of the user's coloring operation. At the same time, when the screen is rotated, the user can continue to color in the operable area on the second picture, which improves the user's experience.
[0126] In some embodiments, when the user operates the target image, it is convenient to accurately obtain the boundary position information and user coloring position information of the target image. The user coloring position information is the pixel position and corresponding color information of the coloring after the user has performed the coloring operation on the target image. For example, when the screen rotates from the first posture to the second posture, the first posture is the horizontal screen state (vertical screen state), and the second posture is the vertical screen state (horizontal screen state). The boundary position information and user coloring position information in the vertical screen state (horizontal screen state) can be quickly calculated based on the boundary position information and user coloring position information of the first image in the horizontal screen state (vertical screen state), so as to update the electronic drawing board interface according to the boundary position information and user coloring position information in the vertical screen state (horizontal screen state). When the rotation is completed, the corresponding second image in the vertical screen state (horizontal screen state) is displayed in the electronic drawing board to ensure that the user coloring position information will not be lost, so that the user can continue to operate.
[0127] In some embodiments, the target image is in a JPG format, and the target image may also be in a PNG or SVG format. By supporting target images in multiple formats, the needs of different users in different usage states can be met, thereby improving the user experience.
[0128] In order to solve the above problems, the present application provides an electronic drawing board optimization method. Fig. 20 This is a flow chart of an electronic drawing board optimization method according to an exemplary embodiment of the present application;
[0129] like Fig. 20 As shown, the method can be executed by a controller, and the method includes the following steps, but is not limited thereto.
[0130] S200: Displaying a first picture on the display in a first posture, the first picture including an operation boundary and an operable area surrounded by the operation boundary, and the user can perform touch editing in the operable area;
[0131] S210: In response to the input rotation operation, control the rotation component to drive the display to rotate from the first posture to the second posture, and rotate and / or scale the first picture on the user interface to obtain a second picture, and update the operation boundary;
[0132] S220: Displaying a second picture on the display in a second posture, and in response to the input editing operation, defining an operable area of the second picture based on the updated operation boundary.
[0133] As can be seen from the above technical solutions, the present application provides a display device and an electronic drawing board optimization method, wherein the controller of the display device is configured to: display a first image on the display in a first posture, the first image includes an operation boundary and an operable area formed by the operation boundary, and the user can perform touch editing in the operable area, and in response to the input rotation operation, control the rotation component to drive the display to rotate from the first posture to the second posture, and rotate and / or scale the first image on the user interface to obtain a second image, update the operation boundary, display the second image on the display in the second posture, and in response to the input editing operation, limit the operable area of the second image based on the updated operation boundary. By optimizing the electronic drawing board after the screen is rotated, the problem that the boundary of the target image in the electronic drawing board and the operation boundary information of the coloring card are lost after the screen is rotated in the existing display device is solved.
[0134] In a specific implementation, the present invention further provides a computer storage medium, wherein the computer storage medium may store a program, and when the program is executed, the program may include some or all of the steps of each embodiment of the method for expanding the display quantity of media resources provided by the present invention. The storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM).
[0135] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.
[0136] For the convenience of explanation, the above description has been made in conjunction with specific embodiments. However, the above exemplary discussion is not intended to be exhaustive or limit the embodiments to the specific forms disclosed above. Based on the above teachings, various modifications and variations can be obtained. The selection and description of the above embodiments are to better explain the principles and practical applications, so that those skilled in the art can better use the embodiments and various different variations of the embodiments suitable for specific use considerations.
Claims
1. A display device, characterized in that: include: a display configured to switch between a first posture and a second posture and to display a user interface; A rotating assembly, used for driving the display to switch between a first posture and a second posture; Touch components, used to respond to editing operations input by users; The controller is configured as: Displaying a first picture on the display in a first posture, wherein the first picture includes an operation boundary and an operable area surrounded by the operation boundary, and a user can perform touch editing in the operable area; In response to the input rotation operation, the rotation component is controlled to drive the display to rotate from the first posture to the second posture, and the first picture on the user interface is rotated and / or scaled to obtain the second picture, and the operation boundary is updated; the second picture is obtained according to the second boundary position information, the second boundary position information is the position information of the operation boundary in the second picture, the second boundary position information is obtained according to the first boundary position information, the first boundary position information is the position information of the operation boundary in the first picture, the boundary pixels corresponding to the boundary position information of the second picture are subjected to domain compensation according to the value of the scaling ratio, the domain compensation is to compensate the pixels adjacent to the pixels corresponding to the second boundary position, and the scaling ratio is the ratio of the picture sizes of the first picture and the second picture; The second picture is displayed on the display in a second posture, and in response to the input editing operation, an operable area of the second picture is defined based on the updated operation boundary.
2. The display device according to claim 1, characterized in that Obtaining a second picture according to the first picture includes: Obtaining first boundary position information according to the first image, where the first boundary position information is position information of the operation boundary in the first image; Obtaining corresponding second boundary position information according to the first boundary position information, where the second boundary position information is position information of an operation boundary in the second image; A second picture is obtained according to the second boundary position information.
3. The display device according to claim 2, characterized in that Obtaining first boundary position information according to the first picture includes: Obtaining the operation boundary color of the first picture; Determine in sequence the pixels in the first picture that have the same color as the operation boundary; Using the position information corresponding to all the pixels as first boundary position information; The first boundary position information is stored.
4. The display device according to claim 3, characterized in that Obtaining corresponding second boundary position information according to the first boundary position information includes: Calculate the zoom ratio according to the display image size in the first posture and the second posture; The second boundary position information corresponding to the first boundary position information is calculated according to the scaling ratio.
5. The display device according to claim 4, characterized in that Calculating the second boundary pixel corresponding to the first boundary pixel according to the scaling ratio a, further comprising: Determine whether the scaling ratio is greater than 1; If the scaling ratio is greater than 1, area compensation is performed on the pixels corresponding to the second boundary position information.
6. The display device according to claim 5, characterized in that If the scaling ratio is greater than 1, the second boundary pixel (X1, Y1) is subjected to area compensation, including: If the value of the scaling ratio a is within the first interval, the colors of the two adjacent pixels corresponding to the pixels of all the second boundary position information are filled with the boundary color; If the value of the scaling ratio a is within the second interval, the colors of the four pixels adjacent to the pixels corresponding to all the second boundary position information are filled with the boundary color; If the value of the scaling ratio a is within the third interval, the colors of eight pixels adjacent to the pixels corresponding to all the second boundary position information are filled as the boundary color.
7. The display device according to claim 6, characterized in that Also includes: In response to the input rotation operation, determining whether the user has performed a coloring operation on the first picture; If the user has performed a coloring operation on the first picture on the display in the first posture, obtaining first coloring position information, where the first coloring position information is position information of a user-colored area in the first picture and a corresponding color; Calculate second coloring position information corresponding to the first coloring position information according to the scaling ratio, where the second coloring position information is position information of a user-colored area in the second image and a corresponding color; On the display in the second posture, a corresponding color is displayed in the coloring area in the second picture according to the second coloring position information.
8. The display device according to claim 7, characterized in that The format of the first image and the second image is one of JPG, PNG or SVG.
9. An electronic drawing board optimization method, characterized in that: The following steps are involved: Displaying a first picture on the display in a first posture, wherein the first picture includes an operation boundary and an operable area surrounded by the operation boundary, and a user can perform touch editing in the operable area; In response to the input rotation operation, the rotation component is controlled to drive the display to rotate from the first posture to the second posture, and the first picture on the user interface is rotated and / or scaled to obtain the second picture, and the operation boundary is updated; the second picture is obtained according to the second boundary position information, the second boundary position information is the position information of the operation boundary in the second picture, the second boundary position information is obtained according to the first boundary position information, the first boundary position information is the position information of the operation boundary in the first picture, the boundary pixels corresponding to the boundary position information of the second picture are subjected to field compensation according to the value of the scaling ratio, the field compensation is to compensate the pixels adjacent to the pixels corresponding to the second boundary position, and the scaling ratio is the image size ratio of the first picture and the second picture; The second picture is displayed on the display in a second posture, and in response to the input editing operation, an operable area of the second picture is defined based on the updated operation boundary.
Citation Information
Patent Citations
Mobile terminal with automatic picture direction adjusting function and display method thereof
CN105607835A
Image display method, device and mobile terminal
CN106648378A
Navigation display system and method based on vehicle-mounted display terminal, and vehicle
CN110316084A
Projection screen image display method and display equipment
CN112565839A
Display device and image display method
CN112799627A
