Graphical programming file compiling method and device, equipment and storage medium
By compressing and compiling the material pictures in the graphical programming file, the memory waste problem of graphical programming projects when running on low-performance devices is solved, and the operation efficiency and user experience are improved.
Patent Information
- Application Number
- CN202411501328.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-25
- Publication Date
- 2025-02-18
AI Technical Summary
During the existing graphical programming process, the size of graphical programming materials cannot be controlled in a fine-grained manner, resulting in a large amount of memory overhead waste when the graphical programming project is running at the user terminal, reducing the user experience of low-performance devices.
By obtaining the material data in the original graphical programming file, compressing the initial image information of the material picture, generating the compressed material picture, and compiling the original graphical programming file based on the compressed material picture and target picture information. , generate target graphical programming files.
It reduces the memory usage caused by calling material pictures at runtime, improves the operation efficiency of graphical programming projects, and improves the user experience of running target graphical programming files on low-performance user terminal devices.
Smart Images

Figure CN119473261A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of graphical programming technology, and in particular to a compilation method, device, equipment and storage medium for a graphical programming file. Background Art
[0002] Graphical programming files are project files created by the graphical programming platform and are used to save graphical programming projects, including scripts, backgrounds, characters, sounds, etc. Users can create animations, games, interactive stories, etc. in the graphical programming platform.
[0003] In the existing graphical programming process, since the size of the materials required for graphical programming is not controlled in a very fine-grained manner, a large amount of memory overhead is wasted when the graphical programming project is running on the user terminal, which reduces the user experience of end users of low-performance devices. Summary of the invention
[0004] The present invention provides a method, device, equipment and storage medium for compiling a graphical programming file to improve the operating efficiency of a graphical programming project.
[0005] According to one aspect of the present invention, a method for compiling a graphical programming file is provided, comprising:
[0006] Acquire material data in an original graphical programming file; wherein the original graphical programming file refers to a graphical programming project that has not been compressed and optimized, and the material data refers to display material information presented to a user, including a material picture, initial picture information of the material picture, and target picture information of the material picture;
[0007] Based on the initial picture information of the material picture, the material picture is compressed; wherein the memory occupied by the material picture after the compression process is smaller than that of the material picture before the compression process;
[0008] Based on the compressed material picture and the target picture information of the material picture, the original graphical programming file is compiled to generate a target graphical programming file.
[0009] According to another aspect of the present invention, there is provided a compiling device for a graphical programming file, comprising:
[0010] A data acquisition module, used to acquire material data in an original graphical programming file; wherein the original graphical programming file refers to a graphical programming file that has not been compressed and optimized, and the material data refers to display material information presented to the user, including a material picture, initial picture information of the material picture, and target picture information of the material picture;
[0011] A compression processing module, used for compressing the material picture based on the initial picture information of the material picture; wherein the memory occupied by the material picture after the compression processing is smaller than that of the material picture before the compression processing;
[0012] The compiling module is used to compile the original graphical programming file based on the compressed material picture and the target picture information of the material picture to generate a target graphical programming file.
[0013] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:
[0014] at least one processor; and
[0015] a memory communicatively connected to the at least one processor; wherein,
[0016] The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the method for compiling a graphical programming file described in any embodiment of the present invention.
[0017] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the method for compiling a graphical programming file according to any embodiment of the present invention when executed.
[0018] According to another aspect of the present invention, a computer program product is provided. When a computer program included in the computer program product is executed by a processor, the computer program implements the method for compiling a graphical programming file according to any embodiment of the present invention.
[0019] The technical solution of the embodiment of the present invention generates a target graphical programming file by compressing the material images in the original graphical programming file and compiling the original graphical programming file based on the compressed material images and the target image information of the material images, thereby reducing the memory usage caused by calling the material images during the operation of the target graphical programming file, improving the operation efficiency of the target graphical programming file, and further improving the user experience of running the target graphical programming file on a low-performance user terminal device.
[0020] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0022] Figure 1 is a flowchart of a method for compiling a graphical programming file provided according to the first embodiment of the present invention;
[0023] Figure 2 is a flowchart of a method for compiling a graphical programming file according to the second embodiment of the present invention.
[0024] Figure 3 is a schematic diagram of the structure of a compiling device for a graphical programming file provided according to a third embodiment of the present invention;
[0025] Figure 4 The present invention is a schematic diagram of the structure of an electronic device for implementing the method for compiling a graphical programming file according to an embodiment of the present invention. DETAILED DESCRIPTION
[0026] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0027] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0028] Embodiment 1
[0029] Figure 1A flowchart of a method for compiling a graphical programming file is provided for the first embodiment of the present invention. This embodiment is applicable to the case of compiling a graphical compilation project. The method can be executed by a compilation device for a graphical programming file. The compilation device for a graphical programming file can be implemented in the form of hardware and / or software. The compilation device for a graphical programming file can be configured in various general-purpose computing devices, such as a terminal device integrated with a graphical compilation environment. Figure 1 As shown, the method includes:
[0030] S110, obtaining material data in the original graphical programming file.
[0031] Among them, the original graphical programming file may refer to a graphical programming project that has not been compressed and optimized, which contains all the project configuration information and script code of the project; the material data may refer to the material information required in the graphical programming project, and the material information refers to the display material information finally presented to the user, that is, the data information that the user can perceive. The material data may include sound data, video data, material picture data, etc., and the material data synchronously records the data information of each type of data. For example, if the material data is a material picture, the initial picture information of the material picture and the target picture information of the material picture will be synchronously recorded in the material data.
[0032] Optionally, the original graphical programming file in an embodiment of the present invention may be an sb3 file; the initial image information may refer to the image information of the material image before being applied, and the target image information may refer to the image information of the material image after being applied to the graphical programming project. It should be noted that the image information may include the center point position information and size information of the image.
[0033] In an optional implementation of an embodiment of the present invention, obtaining material data in an original graphical programming file includes: decompressing the original graphical programming file to obtain file data in the original graphical programming file; traversing the code modules in the file data to determine whether there is referenced material data in the file data; if so, determining whether the data format of the referenced material data is the target data format; if so, obtaining the material data.
[0034] In an embodiment of the present invention, the original graphical programming file is a compressed file. Therefore, it is necessary to first decompress the original graphical programming file to obtain the original readable file data in the original graphical programming file, and traverse each code module in the decompressed file data to determine whether there is a material usage module that calls the material data in the file data. If so, determine whether the data format of the called material data is the target data format. If so, obtain the called material data. Optionally, the target data format can be a pre-set image format of the material image, which can be adaptively set according to technical personnel in this field, such as PNG or JPG format. Optionally, the code module is traversed to determine whether there is a traversal process of the material usage module that calls the material data in the file data, and the code module can be traversed according to the call identifier of the material data.
[0035] Optionally, if the material usage module that calls the material data does not exist in the decompressed file data or the data format of the called material data is not the target data format, the decompressed file data is directly returned to the user to run the graphical programming project corresponding to the file data.
[0036] By predetermining whether the original graphical programming file contains material data that conforms to the target data format, a foundation is laid for subsequent compilation of the original graphical programming file, thereby improving the compilation efficiency of the programming file.
[0037] It should be noted that the original graphical programming file can be a project file that has been compiled for the first time, or a project file that has not been compiled for the first time. There is a large amount of material data in the graphical programming file. During the graphical programming project process, the running effect of the graphical programming project can be finally presented to the user by calling different material data.
[0038] S120: compress the material image based on the initial image information of the material image.
[0039] Among them, the memory occupation of the material picture after compression processing is smaller than that of the material picture before compression processing, that is, the size of the material picture after compression processing is smaller than the size of the material picture before compression processing.
[0040] In the embodiment of the present invention, a predetermined image compression method may be used to compress the material image. Optionally, the image compression method may be adaptively set according to those skilled in the art, and all material images may be globally compressed using a uniform compression ratio, or a single material image may be compressed using a specific compression ratio.
[0041] Optionally, in the embodiment of the present invention, after the material picture is compressed based on the initial picture information of the material picture, the method further includes: updating the initial picture information of the material picture according to the picture information of the compressed material picture.
[0042] Specifically, after the material picture is compressed, the initial picture information corresponding to the material picture is updated synchronously according to the compressed material picture. The consistency of the material picture before and after compression in the graphical programming file is ensured by updating the initial picture information.
[0043] S130. Compile the original graphical programming file based on the compressed material image and the target image information of the material image to generate a target graphical programming file.
[0044] Specifically, the usage information of the material image can be updated according to the image information of the compressed material image and the target image information of the material image, that is, the usage information of the material image in the application process of the graphical programming project, and the original graphical programming file can be compiled according to the updated usage information of the material image to generate the target graphical programming file.
[0045] The technical solution of the embodiment of the present invention generates a target graphical programming file by compressing the material images in the original graphical programming file and compiling the original graphical programming file based on the compressed material images and the target image information of the material images, thereby reducing the memory usage caused by calling the material images during the operation of the target graphical programming file, improving the operation efficiency of the target graphical programming file, and further improving the user experience of running the target graphical programming file on a low-performance user terminal device.
[0046] Embodiment 2
[0047] Figure 2 This is a flowchart of a method for compiling a graphical programming file provided in the second embodiment of the present invention. This embodiment further refines the above embodiment and provides specific steps for compiling the original graphical programming file based on the compressed material image and the target image information of the material image to generate a target graphical programming file. It should be noted that for the undetailed parts of the embodiment of the present invention, please refer to the relevant descriptions of other embodiments, which will not be repeated here. Figure 2 As shown, the method includes:
[0048] S210, obtaining material data in the original graphical programming file.
[0049] S220: compress the material image based on the initial image information of the material image.
[0050] S230, determining the material use module to which the compressed material image belongs in the original graphical programming file.
[0051] The material use module may refer to a code module in which the material data is called, and the material use module records application information of the material data, that is, adjusting the initial image information of the material image so that the adjusted material image conforms to the target image information of the material image.
[0052] Specifically, the material use module to which the initially compressed material picture belongs in the file data of the decompressed original graphical programming file can be determined according to the calling mark of the material picture.
[0053] S240: Update original application information of the material picture in the material use module according to the picture information of the compressed material picture and the target picture information of the material picture.
[0054] Among them, the original application information may refer to the configuration information that adjusts the initial image information of the material image to conform to the target image information of the material image. The configuration information may include the rendering index layer, rendering coordinate axis, rendering scaling ratio and rendering direction of the material image, which is used to apply the material image to the character control.
[0055] Optionally, in an embodiment of the present invention, the original application information of the material image in the material usage module is updated according to the image information of the material image after compression processing and the target image information of the material image, including: determining the image adjustment information of the compressed material image according to the image information of the material image after compression processing and the target image information of the material image; and updating the original application information of the material image in the material usage module according to the image adjustment information.
[0056] The picture adjustment information may be used to instruct to adjust the compressed material picture so as to make it conform to the target picture information of the material picture.
[0057] Specifically, based on the image information of the compressed material image and the target image information of the material image, the image adjustment information for adjusting the image information of the compressed material image to the target image information of the material image can be determined, and based on the rendering index layer, rendering coordinate axis, rendering scaling ratio and rendering direction corresponding to the target image information of the material image, the material image can be adjusted to make the adjusted material image conform to the target image information of the material image and the rendering index layer, rendering coordinate axis, rendering scaling ratio and rendering direction corresponding to the target image information. Even if the compressed material image can still maintain the synchronized display state (display position, display size, display direction, etc.) before compression, the application display logic of the compressed material image needs to be updated to ensure the correct display of the material image.
[0058] S250 . Compile the original graphical programming file according to the updated material use module to generate a target graphical programming file.
[0059] The technical solution of the embodiment of the present invention updates the original application information of the material image in the material usage module according to the image information of the compressed material image and the target image information of the material image, thereby ensuring that the graphical programming project can still achieve the original operation result according to the original operation logic when the data information of the material data changes, thereby improving the operation efficiency of the graphical programming project while maintaining the original operation result display of the graphical programming project, and the generated target graphical programming file has a smaller memory occupancy than the original graphical programming file, which can further save memory resources and further improve the transmission rate when the target graphical programming file is shared with other users.
[0060] Embodiment 3
[0061] Figure 3 This is a schematic diagram of the structure of a graphical programming file compilation device provided by the third embodiment of the present invention. Figure 3 As shown, the device comprises:
[0062] The data acquisition module 310 is used to acquire the material data in the original graphical programming file; wherein, the original graphical programming file refers to the graphical programming file that has not been compressed and optimized, and the material data refers to the display material information presented to the user, including the material picture, the initial picture information of the material picture and the target picture information of the material picture.
[0063] The compression processing module 320 is used to compress the material picture based on the initial picture information of the material picture; wherein the memory occupied by the material picture after the compression processing is smaller than that of the material picture before the compression processing.
[0064] The compiling module 330 is used to compile the original graphical programming file based on the compressed material picture and the target picture information of the material picture to generate a target graphical programming file.
[0065] The technical solution of the embodiment of the present invention generates a target graphical programming file by compressing the material images in the original graphical programming file and compiling the original graphical programming file based on the compressed material images and the target image information of the material images, thereby reducing the memory usage caused by calling the material images during the operation of the target graphical programming file, improving the operation efficiency of the target graphical programming file, and further improving the user experience of running the target graphical programming file on a low-performance user terminal device.
[0066] Optionally, the compiling module 330 includes:
[0067] A module determination unit, used to determine the material use module to which the compressed material picture belongs in the original graphical programming file;
[0068] An information updating unit, configured to update the original application information of the material image in the material use module according to the image information of the compressed material image and the target image information of the material image; wherein the original application information refers to the configuration information of adjusting the initial image information of the material image to conform to the target image information of the material image, and the configuration information includes the rendering index layer, rendering coordinate axis, rendering scaling ratio and rendering direction of the material image;
[0069] The compiling unit is used to compile the original graphical programming file according to the updated material using module to generate a target graphical programming file.
[0070] Optionally, the information update unit can be specifically used to: determine the image adjustment information of the compressed material image based on the image information of the compressed material image and the target image information of the material image; wherein the image adjustment information is used to indicate that the compressed material image is adjusted to conform to the target image information of the material image; and update the original application information of the material image in the material usage module based on the image adjustment information.
[0071] Optionally, the device further comprises:
[0072] The synchronous updating module is used to update the initial picture information of the material picture according to the picture information of the material picture after compression processing.
[0073] Optionally, the image information of the material image may include center point information and size information of the material image.
[0074] Optionally, the data acquisition module 310 can be specifically used to: decompress the original graphical programming file to obtain the file data in the original graphical programming file; traverse the code modules in the file data to determine whether there is referenced material data in the file data; if so, determine whether the data format of the referenced material data is the target data format; if so, obtain the material data.
[0075] The graphical programming file compilation device provided in the embodiment of the present invention can execute the graphical programming file compilation method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.
[0076] Embodiment 4
[0077] Figure 4 A schematic diagram of an electronic device 410 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.
[0078] like Figure 4 As shown, the electronic device 410 includes at least one processor 411, and a memory connected to the at least one processor 411 in communication, such as a read-only memory (ROM) 412, a random access memory (RAM) 413, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 411 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 412 or the computer program loaded from the storage unit 418 to the random access memory (RAM) 413. In the RAM 413, various programs and data required for the operation of the electronic device 410 can also be stored. The processor 411, the ROM 412, and the RAM 413 are connected to each other via a bus 414. An input / output (I / O) interface 415 is also connected to the bus 414.
[0079] Multiple components in the electronic device 410 are connected to the I / O interface 415, including: an input unit 416, such as a keyboard, a mouse, etc.; an output unit 417, such as various types of displays, speakers, etc.; a storage unit 418, such as a disk, an optical disk, etc.; and a communication unit 419, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 419 allows the electronic device 410 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0080] The processor 411 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 411 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 411 executes the various methods and processes described above, such as a compilation method for a graphical programming file.
[0081] In some embodiments, the compiling method of the graphical programming file may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 418. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 410 via the ROM 412 and / or the communication unit 419. When the computer program is loaded into the RAM 413 and executed by the processor 411, one or more steps of the compiling method of the graphical programming file described above may be performed. Alternatively, in other embodiments, the processor 411 may be configured to execute the compiling method of the graphical programming file by any other appropriate means (e.g., by means of firmware).
[0082] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0083] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0084] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0085] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).
[0086] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0087] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.
[0088] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.
[0089] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A method for compiling a graphical programming file, characterized in that: The method comprises: Acquire material data in an original graphical programming file; wherein the original graphical programming file refers to a graphical programming project that has not been compressed and optimized, and the material data refers to display material information presented to a user, including a material picture, initial picture information of the material picture, and target picture information of the material picture; Based on the initial picture information of the material picture, the material picture is compressed; wherein the memory occupied by the material picture after the compression process is smaller than that of the material picture before the compression process; Based on the compressed material picture and the target picture information of the material picture, the original graphical programming file is compiled to generate a target graphical programming file.
2. The method according to claim 1, characterized in that The method of compiling the original graphical programming file based on the compressed material picture and the target picture information of the material picture to generate a target graphical programming file includes: Determine the material usage module to which the compressed material picture belongs in the original graphical programming file; According to the image information of the compressed material image and the target image information of the material image, the original application information of the material image in the material use module is updated; wherein the original application information refers to the configuration information of adjusting the initial image information of the material image to conform to the target image information of the material image, and the configuration information includes the rendering index layer, rendering coordinate axis, rendering scaling ratio and rendering direction of the material image; The original graphical programming file is compiled according to the updated material usage module to generate a target graphical programming file.
3. The method according to claim 2, characterized in that The updating of the original application information of the material picture in the material use module according to the picture information of the material picture after the compression processing and the target picture information of the material picture comprises: Determine the picture adjustment information of the compressed material picture according to the picture information of the compressed material picture and the target picture information of the material picture; wherein the picture adjustment information is used to indicate to adjust the compressed material picture so that it conforms to the target picture information of the material picture; The original application information of the material picture in the material use module is updated according to the picture adjustment information.
4. The method according to claim 1, characterized in that: After compressing the material picture based on the initial picture information of the material picture, the method further includes: The initial picture information of the material picture is updated according to the picture information of the material picture after compression processing.
5. The method according to claim 1, characterized in that The image information of the material image includes the center point information and size information of the material image.
6. The method according to claim 1, characterized in that The step of obtaining the material data in the original graphical programming file includes: Decompressing the original graphical programming file to obtain file data in the original graphical programming file; Traversing the code modules in the file data to determine whether the referenced material data exists in the file data; If it exists, determining whether the data format of the referenced material data is the target data format; If so, obtain the material data.
7. A compiling device for a graphical programming file, characterized in that: The device comprises: A data acquisition module, used to acquire material data in an original graphical programming file; wherein the original graphical programming file refers to a graphical programming file that has not been compressed and optimized, and the material data refers to display material information presented to the user, including a material picture, initial picture information of the material picture, and target picture information of the material picture; A compression processing module, used for compressing the material picture based on the initial picture information of the material picture; wherein the memory occupied by the material picture after the compression processing is smaller than that of the material picture before the compression processing; The compiling module is used to compile the original graphical programming file based on the compressed material picture and the target picture information of the material picture to generate a target graphical programming file.
8. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the method for compiling a graphical programming file according to any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the method for compiling a graphical programming file according to any one of claims 1 to 6 when executed.
10. A computer program product, characterized in that It comprises a computer program, which, when executed by a processor, implements the method for compiling a graphical programming file according to any one of claims 1 to 6.