CN114185628A - Picture adjusting method, device and equipment of iOS system and computer readable medium - Google Patents

Picture adjusting method, device and equipment of iOS system and computer readable medium Download PDF

Info

Publication number
CN114185628A
CN114185628A CN202111402244.9A CN202111402244A CN114185628A CN 114185628 A CN114185628 A CN 114185628A CN 202111402244 A CN202111402244 A CN 202111402244A CN 114185628 A CN114185628 A CN 114185628A
Authority
CN
China
Prior art keywords
target
picture
data block
byte
adjusting
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202111402244.9A
Other languages
Chinese (zh)
Other versions
CN114185628B (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.)
Beijing QIYI Century Science and Technology Co Ltd
Original Assignee
Beijing QIYI Century Science and 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 Beijing QIYI Century Science and Technology Co Ltd filed Critical Beijing QIYI Century Science and Technology Co Ltd
Priority to CN202111402244.9A priority Critical patent/CN114185628B/en
Publication of CN114185628A publication Critical patent/CN114185628A/en
Application granted granted Critical
Publication of CN114185628B publication Critical patent/CN114185628B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformations in the plane of the image
    • G06T3/40Scaling of whole images or parts thereof, e.g. expanding or contracting
    • 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)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • General Engineering & Computer Science (AREA)
  • Television Signal Processing For Recording (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The application relates to a picture adjusting method, a picture adjusting device, picture adjusting equipment and a computer readable medium of an iOS system. The method comprises the following steps: extracting a target data block from a target data stream, wherein the target data block stores information of an adjustable region in a target picture, and the target data stream is used for representing the target picture; analyzing the target data block according to a preset standard format of the target picture to obtain the adjustment information of the target picture; determining the coordinates of the adjustable area in the target picture by using the adjusting information; and adjusting the target picture in a view interface of the iOS system based on the coordinates of the adjustable area. According to the technical scheme, the 9.png picture can be analyzed based on the standard made by Google, so that the content carrying picture adjusting information is extracted, the adjusting information is utilized to locally adjust the 9.png picture, and the technical problem that the iOS system cannot utilize the 9.png picture to realize local adjustment under the condition of no additional parameters is solved.

Description

Picture adjusting method, device and equipment of iOS system and computer readable medium
Technical Field
The present application relates to the field of image processing technologies, and in particular, to a method, an apparatus, a device, and a computer readable medium for adjusting an image of an iOS system.
Background
Png graph (NinePatchDrawable graphic) is a special png graph ending with 9 png. Compared with the normal png picture, the 9.png picture has an extra frame of 1 pixel at the outermost periphery for recording the adjustable region of the png picture and the content region of the picture. The png graph is a format supported by the android system, and the android system can automatically adjust the size of the adjustable region of the picture according to the content of the adjustable region in the target picture to adapt to the content without other additional configuration and parameters. The iOS system does not support the 9.png format, so the iOS system cannot directly use the target picture to achieve local adjustment.
Currently, in the related art, the sliding function in the iOS system provides a similar capability of local adjustment of a picture, but an adjusted region can only be explicitly set in a code, and additional parameters are required, so that a scene (such as a skin-changing background picture, holiday decorations, and a chat frame diagram) of local adjustment of a picture needs to be issued on a network, and not only the picture needs to be issued, but also parameters of an adjustable region matched with the picture need to be issued. The method is high in workload, and once parameters and pictures acquired by the iOS terminal are not matched or are lost, the picture adjustment is wrong or the pictures are invalid.
Aiming at the problem that the iOS system cannot realize local adjustment by using a 9.png picture without additional parameters, an effective solution is not provided at present.
Disclosure of Invention
The application provides a picture adjusting method, a picture adjusting device, picture adjusting equipment and a computer readable medium of an iOS system, and aims to solve the technical problem that the iOS system cannot utilize a 9.png picture to realize local adjustment under the condition of no additional parameter.
According to an aspect of an embodiment of the present application, there is provided a picture adjusting method for an iOS system, applied to a display terminal equipped with the iOS system, including:
extracting a target data block from a target data stream, wherein the target data block stores information of an adjustable region in a target picture, and the target data stream is used for representing the target picture;
analyzing the target data block according to a preset standard format of the target picture to obtain the adjustment information of the target picture;
determining the coordinates of the adjustable area in the target picture by using the adjusting information;
and adjusting the target picture in a view interface of the iOS system based on the coordinates of the adjustable area.
Optionally, extracting the target data block from the target data stream comprises:
and traversing the data blocks in the target data stream until a target data block with the target type of the data block is found, wherein the data from the first target byte to the second target byte in each data block is used for indicating the length of the data in the data block, and the data from the third target byte to the fourth target byte is used for indicating the block type.
Optionally, traversing the data block in the target data stream until finding a target data block whose block type of the data block is the target type includes:
taking data of third to fourth target bytes in the current data block as first target data;
taking the current data block as a target data block under the condition that the value of the first target data is the ASCII code value of the target type;
and in the case that the value of the first target data is not the ASCII code value of the target type, moving backwards by a distance of a first byte length from the first byte of the current data block to locate to the next data block of the current data block, and judging the block type of the next data block by using the first target data of the next data block until the target data block with the value of the first target data being the ASCII code value of the target type is found, wherein the first byte length is the sum of the lengths of the first target byte to the second target byte, the third target byte to the fourth target byte, the length of the data in the data block and the length of the cyclic redundancy check code.
Optionally, before extracting the target data block from the target data stream, the method further includes determining whether the current data stream is the target data stream of the target picture according to the following manner:
extracting second target data with a second byte length from the initial position of the current data stream;
in the case where the value of the second target data is the ASCII code value of the target picture format, the current data stream is determined as the target data stream.
Optionally, the analyzing the target data block according to the preset standard format of the target picture to obtain the adjustment information of the target picture includes at least one of the following manners:
extracting values of four bytes starting from a fifth target byte as a first position parameter, wherein the first position parameter is used for indicating the distance between an adjustable region in the target picture and the left boundary of the target picture;
extracting values of four bytes starting from the sixth target byte as a second position parameter, wherein the second position parameter is used for representing the distance between the adjustable region in the target picture and the right boundary of the target picture;
extracting values of four bytes starting from the seventh target byte as a third position parameter, wherein the third position parameter is used for representing the distance between the adjustable region in the target picture and the boundary on the target picture;
extracting values of four bytes starting from the eighth target byte as a fourth position parameter, wherein the fourth position parameter is used for indicating the distance between the adjustable region in the target picture and the lower boundary of the target picture;
wherein, the adjustable area is a rectangular area.
Optionally, the determining the coordinates of the adjustable region in the target picture by using the adjustment information includes:
and determining the coordinate range of the adjustable area by using the first position parameter, the second position parameter, the third position parameter and the fourth position parameter.
Optionally, adjusting the target picture in the view interface of the iOS system based on the coordinates of the adjustable region includes:
and transferring the coordinate range as a configuration parameter to an objective function to adjust the adjustable area of the target picture by using the objective function, wherein the objective function is a function provided by the iOS system, and the adjusting operation comprises stretching and/or shrinking.
According to another aspect of the embodiments of the present application, there is provided a picture display method of an iOS system, including:
acquiring a picture to be displayed, and determining a region to be displayed of the picture to be displayed;
determining a target area range of an area to be displayed, and adjusting the picture to be displayed according to the target area range to obtain a target display picture;
displaying a target display picture in a to-be-displayed area;
the step of adjusting the picture to be displayed comprises the picture adjusting method.
According to another aspect of the embodiments of the present application, there is provided a UI switching method of an iOS system, including:
under the condition that a first UI interface selected by a target object is received, determining the display range of target display equipment, wherein the current UI interface of the target display equipment is a second UI interface, and the first UI interface is a UI interface to be switched of the target display equipment;
adjusting the first UI interface according to the display range to obtain a third UI interface;
switching the UI interface of the target display device from the second UI interface to a third UI interface;
the step of adjusting the first UI interface comprises the picture adjusting method.
According to another aspect of the embodiments of the present application, there is provided an image adjusting apparatus of an iOS system, applied to a display terminal equipped with the iOS system, including:
the data extraction module is used for extracting a target data block from a target data stream, the target data block stores information of an adjustable region in a target picture, and the target data stream is used for representing the target picture;
the data analysis module is used for analyzing the target data block according to a preset standard format of the target picture to obtain the adjustment information of the target picture;
the coordinate conversion module is used for determining the coordinates of the adjustable area in the target picture by utilizing the adjusting information;
and the picture adjusting module is used for adjusting the target picture on the view interface of the iOS system based on the coordinate of the adjustable area.
According to another aspect of the embodiments of the present application, there is provided an electronic device, including a memory, a processor, a communication interface, and a communication bus, where the memory stores a computer program executable on the processor, and the memory and the processor communicate with each other through the communication bus and the communication interface, and the processor implements the steps of the method when executing the computer program.
According to another aspect of embodiments of the present application, there is also provided a computer readable medium having non-volatile program code executable by a processor, the program code causing the processor to perform the above-mentioned method.
Compared with the related art, the technical scheme provided by the embodiment of the application has the following advantages:
the technical scheme includes that a target data block is extracted from a target data stream, information of an adjustable region in a target picture is stored in the target data block, and the target data stream is used for representing the target picture; analyzing the target data block according to a preset standard format of the target picture to obtain the adjustment information of the target picture; determining the coordinates of the adjustable area in the target picture by using the adjusting information; and adjusting the target picture in a view interface of the iOS system based on the coordinates of the adjustable area. According to the technical scheme, the 9.png picture can be analyzed based on the standard made by Google, so that the content carrying the picture adjusting information is extracted, the iOS system can locally adjust the 9.png picture by utilizing the picture adjusting information, and the technical problem that the iOS system cannot realize local adjustment by utilizing the 9.png picture without additional parameters is solved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and together with the description, serve to explain the principles of the application.
In order to more clearly illustrate the technical solutions in the embodiments or related technologies of the present application, the drawings needed to be used in the description of the embodiments or related technologies will be briefly described below, and it is obvious for those skilled in the art to obtain other drawings without any creative effort.
Fig. 1 is a hardware environment diagram of an optional picture adjustment method for an iOS system according to an embodiment of the present application;
fig. 2 is a flowchart of an optional picture adjustment method of the iOS system according to an embodiment of the present application;
FIG. 3 is a block diagram of an alternative picture adjustment apparatus of an iOS system according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of an alternative electronic device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
In the following description, suffixes such as "module", "component", or "unit" used to denote elements are used only for the convenience of description of the present application, and have no specific meaning in themselves. Thus, "module" and "component" may be used in a mixture.
In the related art, the sliding function in the iOS system provides a similar picture local adjustment capability, but an adjusted area can only be explicitly set in a code, and additional parameters are needed, so that a scene (such as a skin-changing background picture, holiday decorations and a chat frame diagram) of a local adjustment picture needs to be issued on a network, and not only the picture needs to be issued, but also parameters of an adjustable area matched with the picture need to be issued. This not only results in the back end needing to configure additional fields in the interface, and the picture provider needs to make two sets of diagrams to support iOS and android respectively, which increases a lot of workload, but also may cause the situation that parameters and pictures acquired by the iOS end are not matched or missing, resulting in the problem of picture adjustment error (unpredictable deformation) or picture failure.
In order to solve the problems mentioned in the background, according to an aspect of embodiments of the present application, an embodiment of a picture adjustment method of an iOS system is provided. The technical scheme of the application can be applied to scenes of instant data processing, such as adjusting a background frame according to the length of characters, adjusting identities in different festivals, switching role background decorations, adjusting a background picture according to skin selected by a user and the like in an instant communication chat room. The instant data processing scene can be based on the internet for data interaction.
Alternatively, in the embodiment of the present application, the picture adjusting method of the iOS system may be applied to a hardware environment formed by the terminal 101 and the server 103 as shown in fig. 1. As shown in fig. 1, a server 103 is connected to a terminal 101 through a network, which may be used to provide services for the terminal or a client installed on the terminal, and a database 105 may be provided on the server or separately from the server, and is used to provide data storage services for the server 103, and the network includes but is not limited to: a wide area network, a metropolitan area network, or a local area network, and the terminal 101 includes, but is not limited to, a PC, a cell phone, a tablet computer, etc. using an iOS system.
In this embodiment of the present application, a picture adjustment method of an iOS system may be executed by a server 103, or may be executed by both the server 103 and a terminal 101, as shown in fig. 2, the method may include the following steps:
step S202, extracting a target data block from the target data stream, where the target data block stores information of an adjustable region in the target picture, and the target data stream is used to represent the target picture.
In the embodiment of the present application, the target picture is 9.png (ninepatchdatawave graphic). The png graph is a special png picture ending with 9 png. Compared with the normal png picture, the 9.png picture has an extra frame of 1 pixel at the outermost periphery for recording the adjustable region of the png picture and the content region of the picture. Png picture is a raster graphics file format, supporting the portability of lossless bitmap image files, 9 png picture always starts with 8 byte signature: 13780787113102610 (decimal value) or 0x89504e470d0a1a0a (hexadecimal). The rest of the file contains a series of blocks starting with IHDR blocks and ending with IEND blocks. Each data block includes four parts: length, block type, block data, and CRC (Cyclic Redundancy Check). An unsigned integer of length 4 bytes, giving the number of bytes in the block data field. The length only computes the data field, not itself. The block type is 4 bytes composed of upper case and lower case ASCII letters, and is case-specific. Block data is a data byte applicable to a block type, and the length of this field may be zero. A CRC is a 4-byte code and is a CRC value calculated from the preceding byte in the block.
For the local picture, whether the local picture is an iOS system or an android system, the adjustment region can be directly fixed in a hard coding mode. For an instant picture issued by a network in an online environment, an android can directly support 9.png pictures to perform local adjustment, because the 9.png format is a standard formulated by google corporation, and an iOS system does not support the direct use of the 9.png pictures. If the sliding function in the iOS system is used, the configuration parameters specially designed for the iOS system are included when the picture is issued by the network, and the sliding can perform real-time local adjustment on the picture issued by the network according to the configuration parameters, however, not only does the back end need to configure additional fields in the interface, but also the picture provider needs to make two sets of pictures to respectively support iOS and android, which increases much workload, and the situation that the parameters acquired by the iOS end and the picture are not matched or missing can occur, which leads to the problem that the picture adjustment is wrong (unpredictable deformation) or the picture is invalid. According to the technical scheme, the target data block carrying the picture adjusting information can be directly extracted from the data stream of the server issuing the 9.png picture through the network, the Res _ png _9patch standard formulated based on Google is analyzed for the target data block, the content of the picture adjusting information is extracted, and further the iOS system can locally adjust the 9.png picture by utilizing the picture adjusting information, the problem of difference of the iOS and the android system adjustable picture is solved, the problem that the network configuration client adjustable picture needs to be independently configured in a branch end is also solved, and the problem that the branch end independently cuts the picture is solved.
In the embodiment of the application, when the server issues the target picture to the iOS terminal through the network, the target data block carrying the information of the adjustable region of the target picture is extracted from the data stream of the target picture. In the standard format of 9.png picture, the block type of the target data block is "npTc", and its ASCII code value is 0x6E 705463. When the target data block is extracted, it can be seen whether data in 4 bytes of the storage block type in each data block is 0x6E705463, and if so, the current data block is the target data block.
In the embodiment of the application, the target picture can be obtained locally, and the target data block is extracted from the data stream when the data stream of the target picture is read locally.
In addition, for the locally stored picture with fixed adjustment coordinates, the picture can be directly adjusted according to the fixed adjustment coordinates.
And step S204, analyzing the target data block according to the preset standard format of the target picture to obtain the adjustment information of the target picture.
In the embodiment of the application, the preset standard format of the 9.png picture is the Res _ png _9patch standard formulated by Google, and the target data block can be analyzed according to the information recorded in Res _ png _9patch, so that the adjustment information of the 9.png picture is extracted.
And step S206, determining the coordinates of the adjustable area in the target picture by using the adjusting information.
In the embodiment of the application, the coordinates of a specific adjustable region can be determined in the view of the 9.png picture according to the adjustment information, the adjustment information can be the distances from the adjustable region in the 9.png picture to the upper, lower, left and right boundaries of the whole picture, all the boundary distances are obtained, and the coordinates of the adjustable region can be obtained by combining the length and the width of the picture.
And step S208, adjusting the target picture in a view interface of the iOS system based on the coordinates of the adjustable area.
In the embodiment of the application, the sliding function of the iOS system can realize picture adjustment, but additional configuration and parameters are needed, and after the adjustment information obtained by analysis is converted into coordinates, the coordinates can be used as the configuration parameters of sliding, so that the picture is adjusted on the view interface of the iOS system, and the distances from the adjustable area to the upper, lower, left and right boundaries of the whole picture can be used as the configuration parameters of sliding, so that the picture is adjusted on the view interface of the iOS system.
By adopting the technical scheme, the target data block carrying the picture adjusting information is directly extracted from the data stream of the server issuing the 9.png picture through the network, the Res _ png _9patch standard formulated based on Google is used for analyzing the target data block, so that the content of the picture adjusting information is extracted, and further the iOS system can locally adjust the 9.png picture by utilizing the picture adjusting information, the problem of difference of the iOS and the android system adjustable picture is solved, the problem that the network configuration client adjustable picture needs to be independently configured in a branch end and the branch end independently cuts the picture is also solved.
Optionally, extracting the target data block from the target data stream comprises:
and traversing the data blocks in the target data stream until a target data block with the target type of the data block is found, wherein the data from the first target byte to the second target byte in each data block is used for indicating the length of the data in the data block, and the data from the third target byte to the fourth target byte is used for indicating the block type.
In the embodiment of the present application, each data block includes four parts: length, block type, block data, and CRC (Cyclic Redundancy Check). An unsigned integer of length 4 bytes, giving the number of bytes in the block data field. The length only computes the data field, not itself. The block type is 4 bytes composed of upper case and lower case ASCII letters, and is case-specific. Block data is a data byte applicable to a block type, and the length of this field may be zero. A CRC is a 4-byte code and is a CRC value calculated from the preceding byte in the block.
The first target byte is the first byte of each data block, the second target byte is the fourth byte of each data block, and the first 4 bytes from the first target byte to the second target byte are the length-indicating bytes. The third target byte is the fifth byte of each data block, the fourth target byte is the eighth byte of each data block, and the 4 bytes from the third target byte to the fourth target byte represent the block type.
In the embodiment of the present application, the block type of each data block is sequentially determined, where the block type is "npTc", and then the current data block is the target data block carrying the picture adjustment information.
Optionally, traversing the data block in the target data stream until finding a target data block whose block type of the data block is the target type includes:
taking data of third to fourth target bytes in the current data block as first target data;
taking the current data block as a target data block under the condition that the value of the first target data is the ASCII code value of the target type;
and in the case that the value of the first target data is not the ASCII code value of the target type, moving backwards by a distance of a first byte length from the first byte of the current data block to locate to the next data block of the current data block, and judging the block type of the next data block by using the first target data of the next data block until the target data block with the value of the first target data being the ASCII code value of the target type is found, wherein the first byte length is the sum of the lengths of the first target byte to the second target byte, the third target byte to the fourth target byte, the length of the data in the data block and the length of the cyclic redundancy check code.
In the embodiment of the present application, each time the block type of the current data block is data extracted from the fifth byte to the eighth byte of the data block, that is, the first target data is obtained, it is determined whether the value of the first target data is an npTc ASCII code value (0x6E705463), if so, the current data block is the target data block to be found, which carries picture adjustment information, otherwise, the next data block needs to be located, it is determined whether the block type of the next data block is npTc, and so on, all data blocks are traversed until the target data block is found.
When the next data block is located, the content of the current data block needs to be skipped, and the full length of the content of the current data block includes 4 bytes indicating the length, 4 bytes indicating the block type, the length of the block data, and the length of the CRC. The first byte length is the complete length of the current data block.
In the embodiment of the present application, if a target data block with a block type of npTc cannot be found in the target data stream, it indicates that the current picture is a picture that cannot be locally adjusted.
Optionally, before extracting the target data block from the target data stream, the method further includes determining whether the current data stream is the target data stream of the target picture according to the following manner:
extracting second target data with a second byte length from the initial position of the current data stream;
in the case where the value of the second target data is the ASCII code value of the target picture format, the current data stream is determined as the target data stream.
In the embodiment of the present application, a png picture always starts with an 8-byte signature: the file signature is 0x89504e470d0a1a0a (hexadecimal), and the data block structure starts from the ninth byte after the file signature. Therefore, in order to determine whether the current data stream is the target data stream of the 9.png picture, the first 8 bytes of the current data stream may be extracted, and the length of the second byte is 8 bytes. When the first 8 bytes are 0x89504e470d0a1a0a, the current data stream is the target data stream of 9.png picture.
In the embodiment of the present application, if the file signature of the current data stream is not 0x89504e470d0a1a0a, it indicates that the current data stream is not a data stream of 9.png pictures, and it is necessary to feed back a picture format error to the server and re-issue a correct 9.png picture.
Optionally, the analyzing the target data block according to the preset standard format of the target picture to obtain the adjustment information of the target picture includes at least one of the following manners:
extracting values of four bytes starting from a fifth target byte as a first position parameter, wherein the first position parameter is used for indicating the distance between an adjustable region in the target picture and the left boundary of the target picture;
extracting values of four bytes starting from the sixth target byte as a second position parameter, wherein the second position parameter is used for representing the distance between the adjustable region in the target picture and the right boundary of the target picture;
extracting values of four bytes starting from the seventh target byte as a third position parameter, wherein the third position parameter is used for representing the distance between the adjustable region in the target picture and the boundary on the target picture;
extracting values of four bytes starting from the eighth target byte as a fourth position parameter, wherein the fourth position parameter is used for indicating the distance between the adjustable region in the target picture and the lower boundary of the target picture;
wherein, the adjustable area is a rectangular area.
In the embodiment of the application, the adjustable area is a rectangular area, for example, the size of the background frame needs to be configured according to the length of the characters in the background frame of the characters in the chat room, so that the picture of the background frame needs to support local adjustment, only the rectangular area part of the character display is adjusted, and the part outside the character display area is not adjusted.
According to the Res _ png _9patch standard, the fifth target byte is the 13 th byte in the target data block, so the value from the 13 th byte to the 16 th byte is the first position parameter, which indicates the distance between the adjustable region in the 9.png picture and the left boundary of the png picture. The sixth target byte is the 17 th byte in the target data block, so the value from the beginning of the 17 th byte to the 20 th byte is the second position parameter, which represents the distance between the adjustable region in the 9.png picture and the right boundary of the 9.png picture. The seventh target byte is the 21 st byte in the target data block, so the value from the 21 st byte to the 24 th byte is the third position parameter, which represents the distance between the adjustable region in the 9.png picture and the boundary on the 9.png picture. The eighth target byte is the 25 th byte in the target data block, so the value from the 25 th byte to the 28 th byte is the fourth position parameter, which represents the distance between the adjustable region in the 9.png picture and the lower boundary of the 9.png picture.
Optionally, the determining the coordinates of the adjustable region in the target picture by using the adjustment information includes:
and determining the coordinate range of the adjustable area by using the first position parameter, the second position parameter, the third position parameter and the fourth position parameter.
In the embodiment of the application, after the distance between the adjustable region in the 9.png picture and the left, right, upper and lower boundaries of the 9.png picture is obtained, the coordinate range of the adjustable region can be obtained by combining the whole width and height of the 9.png picture. For example, a rectangular coordinate system is established with the vertex at the upper left corner of the 9.png picture as the origin, the horizontal axis is the straight line where the upper boundary of the 9.png picture is located, and the vertical axis is the straight line where the left boundary of the 9.png picture is located, then, under the condition that the distance a between the adjustable region and the left boundary of the 9.png picture, the distance B between the right boundary, the distance C between the upper boundary, the distance D between the lower boundary, and the width W and height H of the whole 9.png picture are known, the upper left corner vertex coordinates (a, C), the lower left corner vertex coordinates (a, H-D), the upper right corner vertex coordinates (W-B, C), and the lower right corner vertex coordinates (W-B, H-D) of the adjustable region can be obtained. The width W and the height H of the whole png picture can be obtained from the IHDR block in the target data stream, or the width and the height of the whole picture can be automatically obtained when the system reads the 9 png picture. The IHDR block records the width, height and bit depth of the 9.png picture.
Optionally, adjusting the target picture in the view interface of the iOS system based on the coordinates of the adjustable region includes:
and transferring the coordinate range as a configuration parameter to an objective function to adjust the adjustable area of the target picture by using the objective function, wherein the objective function is a function provided by the iOS system, and the adjusting operation comprises stretching and/or shrinking.
In the embodiment of the application, the objective function is a related method function in sliding, and the coordinate range of the adjustable region can be used as a configuration parameter of the objective function, so that the sliding can be used for adjusting the picture in a view interface of the iOS system. The distance between the left boundary, the right boundary, the upper boundary and the lower boundary of the adjustable region 9.png picture can be directly transmitted to an objective function as a configuration parameter, and the picture can be adjusted in a view interface of the iOS system by using sliding.
According to another aspect of the embodiments of the present application, there is provided a picture display method of an iOS system, including:
acquiring a picture to be displayed, and determining a region to be displayed of the picture to be displayed;
determining a target area range of an area to be displayed, and adjusting the picture to be displayed according to the target area range to obtain a target display picture;
displaying a target display picture in a to-be-displayed area;
the step of adjusting the picture to be displayed comprises the picture adjusting method.
In the embodiment of the application, the picture adjusting method can be applied to picture display of the iOS system, so that the picture display can be performed more conveniently and more efficiently in the iOS system.
According to another aspect of the embodiments of the present application, there is provided a UI switching method of an iOS system, including:
under the condition that a first UI interface selected by a target object is received, determining the display range of target display equipment, wherein the current UI interface of the target display equipment is a second UI interface, and the first UI interface is a UI interface to be switched of the target display equipment;
adjusting the first UI interface according to the display range to obtain a third UI interface;
switching the UI interface of the target display device from the second UI interface to a third UI interface;
the step of adjusting the first UI interface comprises the picture adjusting method.
In the embodiment of the application, the picture adjusting method can also be applied to UI switching of the iOS system, so that UI switching can be performed more conveniently and more efficiently in the iOS system.
According to still another aspect of the embodiments of the present application, as shown in fig. 3, there is provided a picture adjustment apparatus of an iOS system, including:
the data extraction module 301 is configured to extract a target data block from a target data stream, where the target data stream is a data stream in which a server issues a target picture to an iOS terminal through the internet, and the target data block stores information of an adjustable region in the target picture;
the data analysis module 303 is configured to analyze the target data block according to a preset standard format of the target picture to obtain adjustment information of the target picture;
a coordinate conversion module 305 for determining coordinates of an adjustable region in the target picture using the adjustment information;
and a picture adjusting module 307, configured to adjust the target picture in the view interface of the iOS system based on the coordinates of the adjustable region.
It should be noted that the data extraction module 301 in this embodiment may be configured to execute step S202 in this embodiment, the data parsing module 303 in this embodiment may be configured to execute step S204 in this embodiment, the coordinate conversion module 305 in this embodiment may be configured to execute step S206 in this embodiment, and the picture adjustment module 307 in this embodiment may be configured to execute step S208 in this embodiment.
It should be noted here that the modules described above are the same as the examples and application scenarios implemented by the corresponding steps, but are not limited to the disclosure of the above embodiments. It should be noted that the modules described above as a part of the apparatus may operate in a hardware environment as shown in fig. 1, and may be implemented by software or hardware.
Optionally, the data extraction module is specifically configured to:
and traversing the data blocks in the target data stream until a target data block with the target type of the data block is found, wherein the data from the first target byte to the second target byte in each data block is used for indicating the length of the data in the data block, and the data from the third target byte to the fourth target byte is used for indicating the block type.
Optionally, the data extraction module is further configured to:
taking data of third to fourth target bytes in the current data block as first target data;
taking the current data block as a target data block under the condition that the value of the first target data is the ASCII code value of the target type;
and in the case that the value of the first target data is not the ASCII code value of the target type, moving backwards by a distance of a first byte length from the first byte of the current data block to locate to the next data block of the current data block, and judging the block type of the next data block by using the first target data of the next data block until the target data block with the value of the first target data being the ASCII code value of the target type is found, wherein the first byte length is the sum of the lengths of the first target byte to the second target byte, the third target byte to the fourth target byte, the length of the data in the data block and the length of the cyclic redundancy check code.
Optionally, the picture adjusting apparatus of the iOS system further includes a data stream determining module, configured to:
extracting second target data with a second byte length from the initial position of the current data stream;
in the case where the value of the second target data is the ASCII code value of the target picture format, the current data stream is determined as the target data stream.
Optionally, the data parsing module is specifically configured to:
extracting values of four bytes starting from a fifth target byte as a first position parameter, wherein the first position parameter is used for indicating the distance between an adjustable region in the target picture and the left boundary of the target picture;
extracting values of four bytes starting from the sixth target byte as a second position parameter, wherein the second position parameter is used for representing the distance between the adjustable region in the target picture and the right boundary of the target picture;
extracting values of four bytes starting from the seventh target byte as a third position parameter, wherein the third position parameter is used for representing the distance between the adjustable region in the target picture and the boundary on the target picture;
extracting values of four bytes starting from the eighth target byte as a fourth position parameter, wherein the fourth position parameter is used for indicating the distance between the adjustable region in the target picture and the lower boundary of the target picture;
wherein, the adjustable area is a rectangular area.
Optionally, the coordinate conversion module is specifically configured to:
and determining the coordinate range of the adjustable area by using the first position parameter, the second position parameter, the third position parameter and the fourth position parameter.
Optionally, the picture adjusting module is specifically configured to:
and transferring the coordinate range serving as a configuration parameter to a target function to adjust the adjustable region of the target picture by using the target function, wherein the target function is a function provided by the iOS system.
The technical scheme includes that a data extraction module 301 is used for extracting a target data block from a target data stream, the target data stream is a data stream of a target picture issued by a server to an iOS terminal through the Internet, and information of an adjustable region in the target picture is stored in the target data block; the data analysis module 303 is configured to analyze the target data block according to a preset standard format of the target picture to obtain adjustment information of the target picture; a coordinate conversion module 305 for determining coordinates of an adjustable region in the target picture using the adjustment information; and a picture adjusting module 307, configured to adjust the target picture in the view interface of the iOS system based on the coordinates of the adjustable region. According to the technical scheme, the 9.png picture can be analyzed based on the standard made by Google, so that the content carrying the picture adjusting information is extracted, the iOS system can locally adjust the 9.png picture by utilizing the picture adjusting information, and the technical problem that the iOS system cannot realize local adjustment by utilizing the 9.png picture without additional parameters is solved.
According to another aspect of embodiments of the present application, there is provided a picture display device of an iOS system, including:
the image acquisition module is used for acquiring an image to be displayed and determining an area to be displayed of the image to be displayed;
the picture adjusting module is used for determining a target area range of the area to be displayed and adjusting the picture to be displayed according to the target area range to obtain a target display picture;
and the picture display module is used for displaying the target display picture in the area to be displayed.
According to another aspect of embodiments of the present application, there is provided a UI switching apparatus of an iOS system, including:
the display range determining module is used for determining the display range of the target display equipment under the condition that a first UI interface selected by the target object is received, wherein the current UI interface of the target display equipment is a second UI interface, and the first UI interface is a UI interface to be switched of the target display equipment;
the UI interface adjusting module is used for adjusting the first UI interface according to the display range to obtain a third UI interface;
and the UI interface switching module is used for switching the UI interface of the target display equipment from the second UI interface to the third UI interface.
According to another aspect of the embodiments of the present application, there is provided an electronic device, as shown in fig. 4, including a memory 401, a processor 403, a communication interface 405, and a communication bus 407, where the memory 401 stores a computer program that is executable on the processor 403, the memory 401 and the processor 403 communicate with each other through the communication interface 405 and the communication bus 407, and the processor 403 implements the steps of the method when executing the computer program.
The memory and the processor in the electronic equipment are communicated with the communication interface through a communication bus. The communication bus may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc.
The Memory may include a Random Access Memory (RAM) or a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; the Integrated Circuit may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, a discrete Gate or transistor logic device, or a discrete hardware component.
There is also provided, in accordance with yet another aspect of an embodiment of the present application, a computer-readable medium having non-volatile program code executable by a processor.
Optionally, in an embodiment of the present application, a computer readable medium is configured to store program code for the processor to perform the following steps:
extracting a target data block from a target data stream, wherein the target data block stores information of an adjustable region in a target picture, and the target data stream is used for representing the target picture;
analyzing the target data block according to a preset standard format of the target picture to obtain the adjustment information of the target picture;
determining the coordinates of the adjustable area in the target picture by using the adjusting information;
and adjusting the target picture in a view interface of the iOS system based on the coordinates of the adjustable area.
Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments, and this embodiment is not described herein again.
When the embodiments of the present application are specifically implemented, reference may be made to the above embodiments, and corresponding technical effects are achieved.
It is to be understood that the embodiments described herein may be implemented in hardware, software, firmware, middleware, microcode, or any combination thereof. For a hardware implementation, the Processing units may be implemented within one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), general purpose processors, controllers, micro-controllers, microprocessors, other electronic units configured to perform the functions described herein, or a combination thereof.
For a software implementation, the techniques described herein may be implemented by means of units performing the functions described herein. The software codes may be stored in a memory and executed by a processor. The memory may be implemented within the processor or external to the processor.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the modules is merely a logical division, and in actual implementation, there may be other divisions, for example, multiple modules or components may be combined or integrated into another system, or some features may be omitted, or not implemented. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solutions of the embodiments of the present application may be essentially implemented or make a contribution to the prior art, or may be implemented in the form of a software product stored in a storage medium and including several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a U disk, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk. It is noted that, in this document, relational terms such as "first" and "second," and the like, may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The above description is merely exemplary of the present application and is presented to enable those skilled in the art to understand and practice the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (12)

1. A picture adjusting method of an iOS system is applied to a display terminal carrying the iOS system, and is characterized by comprising the following steps:
extracting a target data block from a target data stream, wherein the target data block stores information of an adjustable region in a target picture, and the target data stream is used for representing the target picture;
analyzing the target data block according to a preset standard format of the target picture to obtain the adjustment information of the target picture;
determining coordinates of an adjustable region in the target picture by using the adjusting information;
and adjusting the target picture in a view interface of an iOS system based on the coordinates of the adjustable area.
2. The method of claim 1, wherein extracting the target data block from the target data stream comprises:
and traversing the data blocks in the target data stream until the target data block with the target type of the data block is found, wherein the data from the first target byte to the second target byte in each data block is used for representing the length of the data in the data block, and the data from the third target byte to the fourth target byte is used for representing the block type.
3. The method of claim 2, wherein traversing the data blocks in the target data stream until a target data block is found for which the block type of the data block is the target type comprises:
taking the data of the third target byte to the fourth target byte in the current data block as first target data;
taking a current data block as the target data block if the value of the first target data is the ASCII code value of the target type;
and in the case that the value of the first target data is not the ASCII code value of the target type, moving backwards by a distance of a first byte length from the first byte of the current data block to locate on the next data block of the current data block, and judging the block type of the next data block by using the first target data of the next data block until the target data block of which the value of the first target data is the ASCII code value of the target type is found, wherein the first byte length is the sum of the lengths of the first target byte to the second target byte, the third target byte to the fourth target byte, the length of data in the data block and the length of a cyclic redundancy check code.
4. A method according to any one of claims 1 to 3, wherein before extracting the target data block from the target data stream, the method further comprises determining whether the current data stream is the target data stream of the target picture as follows:
extracting second target data with a second byte length from the initial position of the current data stream;
determining the current data stream as the target data stream if the value of the second target data is an ASCII code value of a target picture format.
5. The method according to claim 1, wherein parsing the target data block according to the preset standard format of the target picture to obtain the adjustment information of the target picture comprises at least one of:
extracting values of four bytes starting from a fifth target byte as a first position parameter, wherein the first position parameter is used for representing the distance between an adjustable region in the target picture and the left boundary of the target picture;
extracting values of four bytes from a sixth target byte as a second position parameter, wherein the second position parameter is used for representing the distance between an adjustable region in the target picture and the right boundary of the target picture;
extracting values of four bytes from a seventh target byte as a third position parameter, wherein the third position parameter is used for representing the distance between an adjustable region in the target picture and the boundary on the target picture;
extracting values of four bytes starting from an eighth target byte as a fourth position parameter, wherein the fourth position parameter is used for representing the distance between an adjustable region in the target picture and the lower boundary of the target picture;
wherein the adjustable region is a rectangular region.
6. The method of claim 5, wherein determining coordinates of an adjustable region in the target picture using the adjustment information comprises:
determining a coordinate range of the adjustable region using the first, second, third, and fourth position parameters.
7. The method of claim 6, wherein adjusting the target picture at a view interface of an iOS system based on the coordinates of the adjustable region comprises:
and transferring the coordinate range as a configuration parameter to an objective function to adjust the adjustable region of the target picture by using the objective function, wherein the objective function is a function provided by an iOS system, and the adjustment operation comprises stretching and/or shrinking.
8. A picture display method of an iOS system is characterized by comprising the following steps:
acquiring a picture to be displayed, and determining a region to be displayed of the picture to be displayed;
determining a target area range of the area to be displayed, and adjusting the picture to be displayed according to the target area range to obtain a target display picture;
displaying the target display picture in the area to be displayed;
wherein the step of adjusting the picture to be displayed comprises the picture adjusting method of any one of the above claims 1 to 7.
9. A UI switching method of an iOS system is characterized by comprising the following steps:
determining a display range of target display equipment under the condition of receiving a first UI interface selected by a target object, wherein the current UI interface of the target display equipment is a second UI interface, and the first UI interface is a UI interface to be switched of the target display equipment;
adjusting the first UI interface according to the display range to obtain a third UI interface;
switching the UI interface of the target display device from the second UI interface to the third UI interface;
wherein the step of adjusting the first UI interface comprises the picture adjustment method of any of the above claims 1 to 7.
10. The utility model provides a picture adjusting device of iOS system, is applied to the display terminal who carries on the iOS system, its characterized in that includes:
the data extraction module is used for extracting a target data block from a target data stream, wherein the target data block stores information of an adjustable region in a target picture, and the target data stream is used for representing the target picture;
the data analysis module is used for analyzing the target data block according to a preset standard format of the target picture to obtain the adjustment information of the target picture;
the coordinate conversion module is used for determining the coordinates of the adjustable area in the target picture by using the adjusting information;
and the picture adjusting module is used for adjusting the target picture in a view interface of the iOS system based on the coordinates of the adjustable area.
11. An electronic device comprising a memory, a processor, a communication interface and a communication bus, wherein the memory stores a computer program operable on the processor, and the memory and the processor communicate with the communication interface via the communication bus, wherein the processor implements the steps of the method according to any of the claims 1 to 7 or 8 and 9 when executing the computer program.
12. A computer readable medium having non-volatile program code executable by a processor, the program code causing the processor to perform the method of any one of claims 1 to 7 or claims 8, 9.
CN202111402244.9A 2021-11-19 2021-11-19 Picture adjustment method, device and equipment of iOS (integrated operation system) and computer readable medium Active CN114185628B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111402244.9A CN114185628B (en) 2021-11-19 2021-11-19 Picture adjustment method, device and equipment of iOS (integrated operation system) and computer readable medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111402244.9A CN114185628B (en) 2021-11-19 2021-11-19 Picture adjustment method, device and equipment of iOS (integrated operation system) and computer readable medium

Publications (2)

Publication Number Publication Date
CN114185628A true CN114185628A (en) 2022-03-15
CN114185628B CN114185628B (en) 2024-04-12

Family

ID=80602469

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111402244.9A Active CN114185628B (en) 2021-11-19 2021-11-19 Picture adjustment method, device and equipment of iOS (integrated operation system) and computer readable medium

Country Status (1)

Country Link
CN (1) CN114185628B (en)

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2120207A1 (en) * 2008-05-15 2009-11-18 Telefonaktiebolaget LM Ericsson (PUBL) Method and device for scaling digital images
CN103399864A (en) * 2013-07-05 2013-11-20 北京小米科技有限责任公司 Image conversion method and device
US20150286378A1 (en) * 2014-04-08 2015-10-08 Fujitsu Limited Electronic device and computer-readable recording medium storing information display program
CN105068731A (en) * 2015-08-27 2015-11-18 广东欧珀移动通信有限公司 Picture zooming method and user terminal
US20160042569A1 (en) * 2014-08-07 2016-02-11 Somo Innovations Ltd. Augmented reality with graphics rendering controlled by mobile device position
CN105447815A (en) * 2014-06-16 2016-03-30 阿里巴巴集团控股有限公司 Method and device for processing image of mobile terminal equipment
US20160321218A1 (en) * 2015-04-27 2016-11-03 Neatly Co. System and method for transforming image information for a target system interface
CN109165368A (en) * 2018-07-02 2019-01-08 北京奇艺世纪科技有限公司 Webpage generating method, device and electronic equipment
CN110084219A (en) * 2019-05-07 2019-08-02 厦门美图之家科技有限公司 Interface alternation method and device
CN111738917A (en) * 2019-06-06 2020-10-02 北京京东尚科信息技术有限公司 Picture scaling method, device, equipment and storage medium
CN113034351A (en) * 2021-03-25 2021-06-25 联想(北京)有限公司 Image processing method and device
CN113344790A (en) * 2021-06-30 2021-09-03 北京奇艺世纪科技有限公司 Picture processing method and device, electronic equipment and storage medium

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2120207A1 (en) * 2008-05-15 2009-11-18 Telefonaktiebolaget LM Ericsson (PUBL) Method and device for scaling digital images
CN103399864A (en) * 2013-07-05 2013-11-20 北京小米科技有限责任公司 Image conversion method and device
US20150286378A1 (en) * 2014-04-08 2015-10-08 Fujitsu Limited Electronic device and computer-readable recording medium storing information display program
CN105447815A (en) * 2014-06-16 2016-03-30 阿里巴巴集团控股有限公司 Method and device for processing image of mobile terminal equipment
US20160042569A1 (en) * 2014-08-07 2016-02-11 Somo Innovations Ltd. Augmented reality with graphics rendering controlled by mobile device position
US20160321218A1 (en) * 2015-04-27 2016-11-03 Neatly Co. System and method for transforming image information for a target system interface
CN105068731A (en) * 2015-08-27 2015-11-18 广东欧珀移动通信有限公司 Picture zooming method and user terminal
CN109165368A (en) * 2018-07-02 2019-01-08 北京奇艺世纪科技有限公司 Webpage generating method, device and electronic equipment
CN110084219A (en) * 2019-05-07 2019-08-02 厦门美图之家科技有限公司 Interface alternation method and device
CN111738917A (en) * 2019-06-06 2020-10-02 北京京东尚科信息技术有限公司 Picture scaling method, device, equipment and storage medium
CN113034351A (en) * 2021-03-25 2021-06-25 联想(北京)有限公司 Image processing method and device
CN113344790A (en) * 2021-06-30 2021-09-03 北京奇艺世纪科技有限公司 Picture processing method and device, electronic equipment and storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
BRAVE-SAILOR: "点9图 NinePatch chunk解析", pages 1 - 3, Retrieved from the Internet <URL:https://www.cnblogs.com/Free-Thinker/p/13182801.html> *
ZXINSUNSHINE: "NinePatchKit 一个iOS&macOS端的点九图解析和渲染的框架", pages 1 - 39, Retrieved from the Internet <URL:https://github.com/zxinsunshine/NinePatchKit/tree/f6c13e0d5ed1f1ab744a4e0801ebadd3d89ea6e9> *

Also Published As

Publication number Publication date
CN114185628B (en) 2024-04-12

Similar Documents

Publication Publication Date Title
CN109271850B (en) Merchant information uploading method and device, electronic equipment and storage medium
CN106095075B (en) information processing method and augmented reality equipment
KR20120090388A (en) Method and apparatus for managing user device and contents using qr code
US10380117B2 (en) Event occurrence place estimation method, computer-readable recording medium storing event occurrence place estimation program, and event occurrence place estimation apparatus
CN111177813B (en) Method, device and electronic system for identifying graphic elements
CN103530079A (en) Picture displaying method and device adaptive to mobile terminals of different resolution ratios
US20170242832A1 (en) Character editing method and device for screen display device
CN111862205A (en) Visual positioning method, device, equipment and storage medium
US20160314560A1 (en) Image displaying method, apparatus, and device, and computer program product
CN112230824B (en) Data processing method and device of human-computer interaction system and electronic equipment
CN110619807A (en) Method and device for generating global thermodynamic diagram
US20170161871A1 (en) Method and electronic device for previewing picture on intelligent terminal
CN105045676A (en) Device and method for recovering lost data based on SQLite database
CN105760729B (en) Login method and electronic equipment
CN107480299B (en) Information processing method and device
CN114185628A (en) Picture adjusting method, device and equipment of iOS system and computer readable medium
CN103136357A (en) Method, device and mobile equipment for positioning webpages by face recognition technology
CN112150492A (en) Method and device for reading house-type graph and storage medium
CN108717347B (en) Business information interaction identification method and device and electronic equipment
CN111191006A (en) Method and device for determining connection relation between legends and electronic system
CN112445394A (en) Screenshot method and device
CN103577451A (en) Webpage transcoding method, webpage transcoding device and webpage transcoding system
CN113326405B (en) Park entrance recommendation method and system based on BIM technology
CN112860713B (en) Method for acquiring layer data, electronic device and storage medium
CN110971956A (en) Video frame previewing method and device

Legal Events

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