Layer processing method and apparatus, and device, computer-readable storage medium and product

By utilizing transparency information, display order, and size information in the layer processing method to select the target layer, the problem of positioning difficulties caused by transparent areas under multiple layer stacking is solved, achieving more efficient layer editing.

WO2025223393A1PCT designated stage Publication Date: 2025-10-30BEIJING ZITIAO NETWORK TECH CO LTD

Patent Information

Application Number
PCT/CN2025/090337
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2024-04-24
Filing Date
2025-04-22
Publication Date
2025-10-30

AI Technical Summary

Technical Problem

When multiple layers are stacked, the presence of transparent areas makes it difficult for users to accurately locate and edit the target layer.

Method used

By determining the transparency information of the trigger position, combined with the display order and size information of the layers, the target layer can be accurately selected and edited.

Benefits of technology

It improves the accuracy and efficiency of layer editing and avoids selection difficulties caused by transparent areas obscuring lower layers.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2025090337_30102025_PF_FP_ABST
    Figure CN2025090337_30102025_PF_FP_ABST
Patent Text Reader

Abstract

Provided in the embodiments of the present application are a layer processing method and apparatus, and a device, a computer-readable storage medium and a product. The layer processing method comprises: presenting, in a preset display interface, media content to be processed, wherein said media content comprises a plurality of preset layers, and at least some preset layers comprise transparent areas; in response to a preset triggering operation performed by a user on said media content, determining a triggering position corresponding to the preset triggering operation; determining transparency information corresponding to at least one preset layer corresponding to the triggering position, and on the basis of the transparency information, determining a target layer corresponding to the preset triggering operation; and on the basis of a triggering operation performed by the user on the target layer, editing the target layer. Therefore, the impact of a transparent area in an upper preset layer on a lower preset layer can be avoided, such that a triggering operation on a lower target layer is accurately performed. Accordingly, a user can perform an editing operation on the target layer more accurately.
Need to check novelty before this filing date? Find Prior Art

Description

Layer processing methods, apparatus, devices, computer-readable storage media and products

[0001] This application claims priority to Chinese Patent Application No. 202410501692.1, filed on April 24, 2024, the disclosure of which is incorporated herein by reference in its entirety. Technical Field

[0002] This disclosure relates to a layer processing method, apparatus, device, computer-readable storage medium, and product. Background Technology

[0003] When users are editing media content, they often add multiple preset layers to enrich the display effect, adding different editing content to each preset layer. These preset layers often contain transparent areas.

[0004] When multiple preset layers are stacked, the transparent area of ​​the upper layer makes it difficult for the user to directly select the preset layer that needs to be edited. Summary of the Invention

[0005] This disclosure provides a layer processing method, apparatus, device, computer-readable storage medium, and product to solve the technical problem of inaccurate positioning of a target layer when multiple layers with transparent areas are stacked.

[0006] In a first aspect, embodiments of this disclosure provide a layer processing method, including:

[0007] The media content to be processed is displayed in a preset display interface, wherein the media content to be processed includes multiple preset layers, and at least some of the preset layers include transparent areas;

[0008] In response to a user's preset trigger operation on the media content to be processed, determine the trigger position corresponding to the preset trigger operation;

[0009] Determine the transparency information of at least one preset layer corresponding to the trigger position, and determine the target layer corresponding to the preset trigger operation based on the transparency information;

[0010] Based on the user's triggered operation on the target layer, the target layer is edited.

[0011] Secondly, embodiments of this disclosure provide a layer processing apparatus, including:

[0012] The display module is used to display media content to be processed within a preset display interface, wherein the media content to be processed includes multiple preset layers, and at least some of the preset layers include transparent areas;

[0013] The determination module is used to determine the trigger position corresponding to the preset trigger operation in response to the user's preset trigger operation on the media content to be processed;

[0014] The processing module is used to determine the transparency information of at least one preset layer corresponding to the trigger position, and to determine the target layer corresponding to the preset trigger operation based on the transparency information.

[0015] The editing module is used to edit the target layer based on the user's triggered operation on the target layer.

[0016] Thirdly, embodiments of this disclosure provide an electronic device, including: a processor and a memory;

[0017] The memory stores computer-executed instructions;

[0018] The processor executes computer execution instructions stored in the memory, causing the at least one processor to perform the layer processing method as described in the first aspect and various possible designs of the first aspect.

[0019] Fourthly, embodiments of this disclosure provide a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, implement the layer processing method described in the first aspect and various possible designs of the first aspect.

[0020] Fifthly, embodiments of this disclosure provide a computer program product, including a computer program that, when executed by a processor, implements the layer processing method described in the first aspect and various possible designs of the first aspect. Attached Figure Description

[0021] To more clearly illustrate the technical solutions in the embodiments of this disclosure, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are some embodiments of this disclosure. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0022] Figure 1 is a schematic flowchart of the layer processing method provided in the embodiments of this disclosure;

[0023] Figure 2 is a schematic flowchart of a layer processing method provided in another embodiment of this disclosure;

[0024] Figure 3 is a schematic diagram of a scenario for target layer selection provided in an embodiment of this disclosure;

[0025] Figure 4 is a schematic flowchart of a layer processing method provided in another embodiment of this disclosure;

[0026] Figure 5 is a schematic diagram of another application scenario provided by the embodiments of this disclosure;

[0027] Figure 6 is a schematic flowchart of a layer processing method provided in another embodiment of this disclosure;

[0028] Figure 7 is a schematic diagram of the structure of the layer processing device provided in an embodiment of this disclosure; and

[0029] Figure 8 is a schematic diagram of the structure of the electronic device provided in the embodiment of this disclosure. Detailed Implementation

[0030] To make the objectives, technical solutions, and advantages of the embodiments of this disclosure clearer, the technical solutions of the embodiments of this disclosure will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this disclosure, and not all embodiments. Based on the embodiments of this disclosure, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this disclosure.

[0031] It is understood that before using the technical solutions disclosed in the various embodiments of this disclosure, users should be informed of the types, scope of use, and usage scenarios of the personal information involved in this disclosure in an appropriate manner in accordance with relevant laws and regulations, and user authorization should be obtained.

[0032] For example, upon receiving a user's active request, a prompt message is sent to the user to explicitly inform them that the requested operation will require the acquisition and use of the user's personal information. This allows the user to independently choose whether to provide personal information to the software or hardware, such as the electronic device, application, server, or storage medium performing the operations of this disclosed technical solution, based on the prompt message.

[0033] As an optional but non-limiting implementation, in response to a user's active request, sending a prompt message to the user can be done via a pop-up window, where the prompt message can be presented in text format. Furthermore, the pop-up window can also include a selection control allowing the user to choose "agree" or "disagree" to provide personal information to the electronic device.

[0034] It is understood that the above notification and user authorization process are merely illustrative and do not constitute a limitation on the implementation of this disclosure. Other methods that comply with relevant laws and regulations may also be applied to the implementation of this disclosure.

[0035] To address the technical problem of inaccurately locating the target layer when multiple layers with transparent areas are stacked, this disclosure provides a layer processing method, apparatus, device, computer-readable storage medium, and product.

[0036] It should be noted that the layer processing methods, apparatus, devices, computer-readable storage media and products provided in this disclosure can be applied to any scenario of layer positioning in the case of multiple layers stacked.

[0037] When multiple preset layers are stacked, the transparent area of ​​the upper layer makes it difficult for users to directly select the layer that needs to be edited.

[0038] In related technologies, to enable targeted editing of preset layers, layer controls can be displayed in the interface. Users can trigger the layer controls to expand the current layer list and locate the target layer to be edited. However, this method of layer editing is often cumbersome and inefficient.

[0039] In the process of solving the above-mentioned technical problems, the inventors discovered through research that in order to avoid the influence of the transparent area in the upper preset layer on the lower preset layer and to accurately perform the triggering operation of the lower target layer, the transparency information of at least one preset layer corresponding to the current triggering position can be determined, and the target layer can be located and selected based on the transparency information.

[0040] The inventors further discovered that, in order to accurately select a lower target layer that is obscured by the transparent area of ​​an upper preset layer, the target layer can be determined based on transparency information and the display order of each preset layer. For example, the transparency information of each preset layer can be determined sequentially according to its display order, and the preset layer that meets the preset selection criteria can be identified as the target layer.

[0041] Figure 1 is a flowchart illustrating the layer processing method provided in this embodiment of the present disclosure. As shown in Figure 1, the method includes:

[0042] Step 101: Display the media content to be processed in the preset display interface, wherein the media content to be processed includes multiple preset layers, and at least some of the preset layers include transparent areas.

[0043] In this embodiment, the execution entity is a layer processing device. This layer processing device can be coupled to a terminal device, thereby enabling the selection and editing of target layers based on transparency information triggered by the user on the terminal device.

[0044] In this embodiment, the media content to be processed can be displayed in a preset display interface. The media content to be processed includes, but is not limited to, image media content and presentation media content.

[0045] The media content to be processed can consist of multiple preset layers, and different preset layers can include different display content. At least some preset layers include transparent areas.

[0046] Step 102: In response to the user's preset trigger operation for the media content to be processed, determine the trigger position corresponding to the preset trigger operation.

[0047] In this embodiment, the user can perform preset trigger operations on the media content to be processed. These preset trigger operations include, but are not limited to, mouse hover operations, click operations, drag operations, etc. This disclosure does not limit these operations.

[0048] In response to a user's preset trigger action on the media content to be processed, the trigger position corresponding to the preset trigger action can be determined. For example, the click position of the user's current click action can be determined, or the hover position of the mouse can be determined as the user moves the mouse.

[0049] Step 103: Determine the transparency information of at least one preset layer corresponding to the trigger position, and determine the target layer corresponding to the preset trigger operation based on the transparency information.

[0050] In this embodiment, after determining the trigger position corresponding to the preset trigger operation, at least one preset layer may be located at that trigger position. The at least one preset layer is stacked and displayed in a preset display order.

[0051] Since at least some preset layers have transparent areas, and these transparent areas are not visible in the display interface, if the upper preset layer is a transparent area at the trigger position, the content of the lower preset layer can be directly displayed on the display interface. Therefore, in order to accurately determine the target layer currently selected by the user, the target layer corresponding to the preset trigger operation is determined based on the transparency information.

[0052] For example, you can select the first opaque preset layer as the target layer based on the transparency information to avoid triggering operations on transparent layers.

[0053] Step 104: Based on the user's trigger operation on the target layer, perform editing processing on the target layer.

[0054] In this embodiment, after selecting the target layer, the user can trigger editing operations on the target layer. These editing operations include, but are not limited to, position adjustment, color adjustment, size adjustment, fill content adjustment, deletion, and replacement operations, etc., and this disclosure does not impose any limitations on them.

[0055] Therefore, in response to an editing operation triggered by a user on a target layer, the target layer can be edited based on the type of editing triggered by the user.

[0056] The layer processing method provided in this embodiment determines the trigger position corresponding to a user's preset trigger operation on the media content to be processed. It then determines the transparency information of at least one preset layer corresponding to that trigger position, and uses this transparency information to determine the target layer corresponding to the preset trigger operation. This avoids the influence of transparent areas in upper preset layers on lower preset layers, allowing for accurate trigger operations on the lower target layer. Consequently, users can perform more precise editing operations on the target layer.

[0057] Optionally, based on any of the above embodiments, step 103 includes:

[0058] Determine the association information corresponding to the at least one preset layer, wherein the association information includes one or more of the following: the display order of the at least one preset layer in the media content to be processed, the display size corresponding to the preset layer, and the preset sorting method associated with the at least one preset layer;

[0059] The target layer corresponding to the preset trigger operation is determined based on the transparency information and the association information.

[0060] In this embodiment, to more accurately determine the target layer corresponding to a preset trigger operation based on transparency information, the association information of at least one preset layer corresponding to the trigger position can first be determined. This association information includes one or more of the following: the display order of the at least one preset layer in the media content to be processed, the display size of the preset layer, and a preset sorting method associated with the at least one preset layer. After determining the association information, the target layer can be determined based on both the transparency information and the association information.

[0061] For example, the target layer can be determined based on transparency information, display order, and size information. Specifically, a preset layer whose transparency and size information, determined sequentially according to the display order, collectively satisfy preset conditions can be used as the target layer.

[0062] Figure 2 is a flowchart illustrating a layer processing method provided in another embodiment of this disclosure. Based on any of the above embodiments, as shown in Figure 2, determining the associated information corresponding to the at least one preset layer includes:

[0063] Step 201: Determine the display order of at least one preset layer corresponding to the trigger position in the media content to be processed.

[0064] Determining the target layer corresponding to the preset trigger operation based on the transparency information and the association information includes:

[0065] Step 202: Determine the target layer corresponding to the preset trigger operation based on the display order and the transparency information.

[0066] In this embodiment, in order to ensure the display effect of the media content to be processed, the user can set the display order for multiple preset layers, and the multiple preset layers can be displayed in the preset display order.

[0067] When the upper preset layer is transparent, a user's trigger operation on the lower preset layer may select the upper preset layer, preventing the user from accurately selecting the layer. Therefore, after determining the display order of at least one preset layer corresponding to the trigger position in the media content to be processed, the target layer corresponding to the preset trigger operation can be determined based on the display order and transparency information.

[0068] The layer processing method provided in this embodiment determines the display order of at least one preset layer corresponding to the trigger position in the media content to be processed. Based on the display order and transparency information, it can accurately determine the target layer currently selected by the user, avoiding the problem of layer selection difficulty caused by the transparent area of ​​the upper preset layer occluding the lower preset layer.

[0069] Furthermore, based on any of the above embodiments, step 202 includes:

[0070] According to the display order, determine whether the transparency information corresponding to the preset layer meets the preset selection conditions.

[0071] The first preset layer that meets the preset selection conditions is determined as the target layer.

[0072] In this embodiment, the media content to be processed may contain multiple stacked preset layers. When the upper preset layer has a transparent area, the lower preset layer can be directly displayed on the display interface. However, when the user performs editing operations relative to the lower preset layer, clicking on the currently displayed preset layer may select the transparent area of ​​the upper preset layer, making it impossible for the user to accurately perform layer editing operations. Therefore, the target layer to be selected can be determined based on the display order and transparency of the preset layers.

[0073] Optionally, after determining the display order of at least one preset layer, the transparency information corresponding to the preset layers can be sequentially determined according to this display order to see if it meets the preset selection conditions. The first preset layer that meets the preset selection conditions is determined as the target layer. To avoid selecting transparent layers, the preset selection condition can be selecting preset layers with transparency below a preset threshold.

[0074] It is understandable that when the transparency is 100%, the preset layer is completely transparent and invisible in the display interface; when the transparency is 0%, the preset layer is in its clearest state. For example, the selection condition for this preset could be selecting the first opaque layer, or selecting the clearest layer, etc. This disclosure does not impose any restrictions on the selection criteria.

[0075] Figure 3 is a schematic diagram of a target layer selection scenario provided in an embodiment of this disclosure. As shown in Figure 3, the media content 31 to be processed may include a preset layer 32, a preset layer 33, and a preset layer 34. The preset layer 32 is at the top layer of the media content 31 to be processed, and the preset layer 34 is at the bottom layer. Both preset layers 32 and 33 include transparent areas 35. In response to a user's preset trigger operation on the media content 31 to be processed, the trigger position corresponding to the preset trigger operation can be determined. The transparency information of each preset layer at the trigger position is determined. Following the above display order, it is determined whether the transparency information corresponding to the preset layers meets the preset selection conditions. The preset layer 34, whose transparency is not zero, is determined as the target layer.

[0076] The layer processing method provided in this embodiment, by pre-setting selection conditions, can sequentially determine whether preset layers meet the selection conditions according to the display order, and identify the first preset layer that meets the selection conditions as the target layer. This avoids the problem of layer selection difficulties caused by transparent areas in upper preset layers obscuring lower preset layers. Furthermore, it can accurately select the target layer currently viewed and triggered by the user when multiple non-transparent preset layers exist, improving the accuracy and efficiency of layer processing.

[0077] Figure 4 is a flowchart illustrating a layer processing method provided in another embodiment of this disclosure. Based on any of the above embodiments, as shown in Figure 4, the associated information includes the display size corresponding to the preset layer; determining the target layer corresponding to the preset trigger operation based on the transparency information and the associated information includes:

[0078] Step 401: Determine the display size of at least one preset layer corresponding to the trigger position.

[0079] The step of determining the target layer corresponding to the preset trigger operation based on the transparency information, the display order, and / or the size information, or a preset sorting method includes:

[0080] Step 402: Determine the target layer based on the transparency information and the size information.

[0081] In this embodiment, when multiple preset layers exist at the trigger location, some preset layers may be small in size and displayed close together, potentially causing accidental touches and resulting in the selected layer not being the one the user needs to edit. Therefore, to avoid accidental touches on smaller preset layers, the target layer can be determined based on both transparency information and display size.

[0082] Optionally, after determining at least one preset layer at the trigger position corresponding to the preset trigger operation, the display size of the at least one preset layer corresponding to the trigger position can be determined. The target layer is determined simultaneously based on transparency information and size information. For example, a larger and opaque preset layer can be selected as the target layer, or at least one preset layer can be weighted based on preset weight information, transparency information, and size information, and the target layer can be determined based on the weighted calculation result, etc. This disclosure does not limit this.

[0083] The layer processing method provided in this embodiment determines the display size of at least one preset layer corresponding to the trigger position. The target layer is determined based on transparency and size information, thereby effectively avoiding accidental user touches and accurately selecting the target layer.

[0084] Furthermore, based on any of the above embodiments, step 402 includes:

[0085] Based on the transparency information, at least one first layer that meets the preset selection conditions is determined in at least one preset layer.

[0086] The first layer whose display size meets the preset size condition among the at least one first layer is determined as the target layer.

[0087] In this embodiment, the preset layers can have different display sizes. To avoid users accidentally touching smaller preset layers, the target layer can be determined based on both transparency information and display size.

[0088] Optionally, at least one first layer satisfying a preset selection condition can be determined from at least one preset layer based on transparency information. For example, to avoid selecting a transparent layer, the preset selection condition could be to select a preset layer with transparency below a preset threshold. Therefore, after considering the transparency information of at least one preset layer corresponding to the trigger position, at least one preset layer with lower transparency can be selected.

[0089] Furthermore, to prevent accidental user touches, at least one of the first layers whose display size meets a preset size condition can be designated as the target layer. This size condition can be that a preset layer whose display size is greater than a preset threshold is designated as the target image. If multiple preset layers meet both the preset selection condition and the preset size condition, the preset layer with the largest size can be designated as the target layer, or the layer with the lowest transparency can be designated as the target layer; this disclosure does not impose any limitations on this.

[0090] It should be noted that users can also scale the preset layer. If the display size of the preset layer meets the preset size conditions after scaling, the scaled preset layer can be selected in response to the user's preset trigger operation.

[0091] Figure 5 illustrates another application scenario provided by this embodiment. As shown in Figure 5, a preset icon 52 is displayed on a preset layer 51. When the display size of the preset icon 52 is smaller than the preset size, the preset layer 51 can be excluded from being designated as the target layer. The target layer can still be selected based on transparency. Conversely, the user can zoom in on the preset layer 51 using a scaling operation. When the display size of the preset icon 52 is larger than the preset size, in response to the user's preset trigger operation, the preset layer 51 can be designated as the target layer.

[0092] The layer processing method provided in this embodiment determines the target layer by setting the preset layers that meet the preset selection conditions and size conditions respectively. This enables the selection of the lower layer in the case of multiple layers being stacked, while avoiding accidental touches by the user and improving the efficiency of layer processing.

[0093] Figure 6 is a flowchart illustrating a layer processing method provided in another embodiment of this disclosure. Based on any of the above embodiments, as shown in Figure 6, the association information includes a preset sorting method for the association of the at least one preset layer. The step of determining the target layer corresponding to the preset trigger operation based on the transparency information and the association information includes:

[0094] Step 601: Determine the target order of the transparency information corresponding to the at least one preset layer according to the preset sorting method.

[0095] Step 602: Sort the at least one preset layer according to the target order to obtain the sorted preset layers.

[0096] Step 603: Determine the first preset layer in the sorted preset layers as the target layer.

[0097] In this embodiment, the trigger position may correspond to at least one preset layer, wherein different preset layers have different transparency at the trigger position. In response to the user's preset trigger operation at the trigger position, the preset layer with the lowest transparency can be determined as the target layer.

[0098] Optionally, lower transparency results in a clearer preset layer, and vice versa. At 100% transparency, the preset layer is invisible on the display interface. After determining the trigger position, the transparency information of at least one preset layer corresponding to the trigger position can be determined. This transparency information is then sorted according to a preset sorting method to obtain a target order. Based on this target order, at least one preset layer is sorted to obtain the sorted preset layers. The preset layers can be sorted from low to high transparency.

[0099] After obtaining the sorted preset layers, the first preset layer in the sorted preset layers can be identified as the target layer. Since the preset layers are sorted from low to high, the preset layer with the lowest opacity, that is, the clearest preset layer, can be identified as the target layer.

[0100] The layer processing method provided in this embodiment can accurately perform layer selection operations by determining the preset layer with the lowest transparency among multiple preset layers as the target layer.

[0101] Optionally, based on any of the above embodiments, step 104 includes:

[0102] Determine the editing area associated with the target layer.

[0103] In response to a drag operation triggered by the user targeting the target layer, the target layer is dragged within the editing area.

[0104] In this embodiment, to prevent the target layer from being dragged out of the visible area, an editing area associated with the target layer can be pre-defined. After determining the target layer, the editing area associated with the target layer can be determined. Therefore, when the user triggers a drag operation on the target layer or the content displayed within the target layer, the target layer can be dragged within the editing area.

[0105] The layer processing method provided in this embodiment responds to the user's drag operation triggered on the target layer by dragging the target layer within the editing area associated with the target layer. This avoids the drag operation from removing the target layer from the editing area and improves the fault tolerance rate during the layer editing process.

[0106] Optionally, based on any of the above embodiments, step 104 includes:

[0107] In response to the user moving a preset material to the trigger position, the display content in the target layer is replaced with the preset material, or the target layer is filled with the preset material.

[0108] In this embodiment, after the target layer is determined, the user can perform editing operations on the target layer.

[0109] Optionally, when the target layer includes preset display content, the user can replace the currently displayed content within the target layer. The display interface may show preset materials, which can be collected by the user in real time, obtained from a preset storage path, or be online resources from the internet; this disclosure does not impose any restrictions. The user can drag and drop the preset materials to move them to the trigger position, thereby replacing the displayed content in the target layer using the preset materials. Alternatively, the preset materials can be moved to the trigger position using other triggering methods, such as entering the trigger position in the preset position settings page, to achieve the movement of the preset materials; this disclosure does not impose any restrictions on this.

[0110] Optionally, when the target layer is a blank layer, the user can also fill the target layer with preset materials. In response to the user moving the preset materials to the trigger position, the target layer can be filled with the preset materials.

[0111] The layer processing method provided in this embodiment, after determining the target layer, responds to the user moving the preset material to the trigger position and replacing or filling the target layer with the preset material. This allows for rapid editing of the currently selected target layer even when the target layer is obscured by the transparent area of ​​the preset layer, thus improving the efficiency of layer editing.

[0112] Optionally, based on any of the above embodiments, after step 103, the method further includes:

[0113] In response to the user's triggering operation on the preset trigger control at the triggering location, all preset layers corresponding to the triggering location are selected.

[0114] In this embodiment, after determining the trigger location, the user can trigger a preset trigger control. This preset trigger control can be a preset button on the remote control device, such as the right mouse button, or it can be any visual control on the display interface; this disclosure does not impose any limitations on this.

[0115] In response to a user's trigger operation on a preset trigger control at a trigger location, all preset layers corresponding to that trigger location can be selected. This trigger operation includes, but is not limited to, single-click, double-click, long-press, and dragging. After selecting all preset layers, the user can subsequently perform batch editing operations on all preset layers. These editing operations include, but are not limited to, deletion, modification, resizing, color adjustment, and position adjustment, and this disclosure does not impose any limitations on them.

[0116] The layer processing method provided in this embodiment, by responding to the user's trigger operation on the preset trigger control at the trigger position, selects all preset layers corresponding to the trigger position, which enables the user to quickly perform editing operations on all preset layers at the trigger position, thereby improving the efficiency of layer editing.

[0117] Figure 7 is a schematic diagram of the layer processing device provided in an embodiment of this disclosure. As shown in Figure 7, the device includes: a display module 71, a determination module 72, a processing module 73, and an editing module 74. The display module 71 is used to display media content to be processed within a preset display interface. The media content to be processed includes multiple preset layers, and at least some of the preset layers include transparent areas. The determination module 72 is used to determine the trigger position corresponding to a preset trigger operation performed by a user on the media content to be processed. The processing module 73 is used to determine the transparency information of at least one preset layer corresponding to the trigger position, and determine the target layer corresponding to the preset trigger operation based on the transparency information. The editing module 74 is used to edit the target layer based on the user's trigger operation on the target layer.

[0118] Further, based on any of the above embodiments, the processing module is configured to: determine the association information corresponding to the at least one preset layer, wherein the association information includes one or more of the following: the display order of the at least one preset layer in the media content to be processed, the display size corresponding to the preset layer, and the preset sorting method associated with the at least one preset layer. The module also determines the target layer corresponding to the preset trigger operation based on the transparency information and the association information.

[0119] Furthermore, based on any of the above embodiments, the associated information includes the display order of the at least one preset layer in the media content to be processed; the processing module is configured to: determine whether the transparency information corresponding to the preset layer satisfies a preset selection condition according to the display order; and determine the first preset layer that satisfies the preset selection condition as the target layer.

[0120] Further, based on any of the above embodiments, the associated information includes the display size corresponding to the preset layer; the processing module is configured to: determine at least one first layer that satisfies a preset selection condition among the at least one preset layers according to the transparency information; and determine the first layer among the at least one first layers whose display size satisfies the preset size condition as the target layer.

[0121] Furthermore, based on any of the above embodiments, the association information includes a preset sorting method associated with the at least one preset layer. The processing module is configured to: sort the at least one preset layer according to the preset sorting method based on the transparency information to obtain sorted preset layers; and determine the first preset layer among the sorted preset layers as the target layer.

[0122] Furthermore, based on any of the above embodiments, the editing module is configured to: determine the editing area associated with the target layer; and, in response to a drag operation triggered by the user on the target layer, drag the target layer within the editing area.

[0123] Furthermore, based on any of the above embodiments, the device further includes: a selection module, used to select all preset layers corresponding to the trigger position in response to the user's trigger operation on the preset trigger control at the trigger position.

[0124] Furthermore, based on any of the above embodiments, the editing module is configured to: in response to the user moving a preset material to the trigger position, replace the display content in the target layer with the preset material, or fill the target layer with the preset material.

[0125] The device provided in this embodiment can be used to execute the technical solutions of the above method embodiments. Its implementation principle and technical effect are similar, and will not be described again here.

[0126] To implement the above embodiments, this disclosure also provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, implement the layer processing method as described in any of the above embodiments.

[0127] To implement the above embodiments, this disclosure also provides a computer program product, including a computer program that, when executed by a processor, implements the layer processing method as described in any of the above embodiments.

[0128] To implement the above embodiments, this disclosure also provides an electronic device, including: a processor and a memory;

[0129] The memory stores computer-executed instructions;

[0130] The processor executes computer execution instructions stored in the memory, causing the processor to perform the layer processing method as described in any of the above embodiments.

[0131] Figure 8 is a schematic diagram of the structure of an electronic device provided in an embodiment of this disclosure. The electronic device 800 can be a terminal device or a server. The terminal device may include, but is not limited to, mobile terminals such as mobile phones, laptops, digital radio receivers, personal digital assistants (PDAs), portable Android devices (PADs), portable media players (PMPs), and in-vehicle terminals (e.g., in-vehicle navigation terminals), as well as fixed terminals such as digital TVs and desktop computers. The electronic device shown in Figure 8 is merely an example and should not be construed as limiting the functionality and scope of use of the embodiments of this disclosure.

[0132] As shown in Figure 8, the electronic device 800 may include a processing unit (e.g., a central processing unit, a graphics processing unit, etc.) 801, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 802 or a program loaded from a storage device 808 into a random access memory (RAM) 803. The RAM 803 also stores various programs and data required for the operation of the electronic device 800. The processing unit 801, ROM 802, and RAM 803 are interconnected via a bus 804. An input / output (I / O) interface 805 is also connected to the bus 804.

[0133] Typically, the following devices can be connected to I / O interface 805: input devices 806 including, for example, touchscreens, touchpads, keyboards, mice, cameras, microphones, accelerometers, gyroscopes, etc.; output devices 807 including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; storage devices 808 including, for example, magnetic tapes, hard disks, etc.; and communication devices 809. Communication device 809 allows electronic device 800 to communicate wirelessly or wiredly with other devices to exchange data. Although Figure 8 shows an electronic device 800 with various devices, it should be understood that it is not required to implement or possess all of the devices shown. More or fewer devices may be implemented or possessed alternatively.

[0134] In particular, according to embodiments of this disclosure, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of this disclosure include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via a communication device 809, or installed from a storage device 808, or installed from a ROM 802. When the computer program is executed by a processing device 801, it performs the functions defined in the methods of embodiments of this disclosure.

[0135] It should be noted that the computer-readable medium described in this disclosure can be a computer-readable signal medium or a computer-readable storage medium, or any combination thereof. A computer-readable storage medium can be, for example,—but not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this disclosure, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in connection with an instruction execution system, apparatus, or device. In this disclosure, a computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A computer-readable signal medium can be any computer-readable medium other than a computer-readable storage medium, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium can be transmitted using any suitable medium, including but not limited to: wires, optical fibers, RF (radio frequency), etc., or any suitable combination thereof.

[0136] The aforementioned computer-readable medium may be included in the aforementioned electronic device; or it may exist independently and not assembled into the electronic device.

[0137] The aforementioned computer-readable medium carries one or more programs, which, when executed by the electronic device, cause the electronic device to perform the methods shown in the above embodiments.

[0138] Computer program code for performing the operations of this disclosure can be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, and C++, and conventional procedural programming languages ​​such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a Local Area Network (LAN) or a Wide Area Network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0139] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this disclosure. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.

[0140] The units described in the embodiments of this disclosure can be implemented in software or in hardware. The name of a unit does not necessarily limit the unit itself; for example, the first acquisition unit can also be described as "a unit that acquires at least two Internet Protocol addresses".

[0141] The functions described above in this document can be performed, at least in part, by one or more hardware logic components. For example, exemplary types of hardware logic components that can be used, without limitation, include: Field Programmable Gate Arrays (FPGAs), Application-Specific Integrated Circuits (ASICs), Application Standard Products (ASSPs), System-on-Chip (SoCs), Complex Programmable Logic Devices (CPLDs), and so on.

[0142] In the context of this disclosure, a machine-readable medium can be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can be, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.

[0143] The above description is merely a preferred embodiment of this disclosure and an explanation of the technical principles employed. Those skilled in the art should understand that the scope of this disclosure is not limited to technical solutions formed by specific combinations of the above-described technical features, but should also cover other technical solutions formed by arbitrary combinations of the above-described technical features or their equivalents without departing from the above-described concept. For example, technical solutions formed by substituting the above features with (but not limited to) technical features disclosed in this disclosure that have similar functions.

[0144] Furthermore, while the operations are described in a specific order, this should not be construed as requiring these operations to be performed in the specific order shown or in a sequential order. In certain environments, multitasking and parallel processing may be advantageous. Similarly, while several specific implementation details are included in the above discussion, these should not be construed as limiting the scope of this disclosure. Certain features described in the context of individual embodiments may also be implemented in combination in a single embodiment. Conversely, various features described in the context of a single embodiment may also be implemented individually or in any suitable sub-combination in multiple embodiments.

[0145] Although the subject matter has been described using language specific to structural features and / or methodological logic, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. Rather, the specific features and actions described above are merely illustrative examples of implementing the claims.

Claims

1. A layer processing method, comprising: The media content to be processed is displayed in a preset display interface, wherein the media content to be processed includes multiple preset layers, and at least some of the preset layers include transparent areas; In response to a user's preset trigger operation on the media content to be processed, determine the trigger position corresponding to the preset trigger operation; Determine the transparency information of at least one preset layer corresponding to the trigger position, and determine the target layer corresponding to the preset trigger operation based on the transparency information; Based on the user's triggered operation on the target layer, the target layer is edited.

2. The method according to claim 1, wherein, Determining the target layer corresponding to the preset trigger operation based on the transparency information includes: Determine the association information corresponding to the at least one preset layer, wherein the association information includes one or more of the following: the display order of the at least one preset layer in the media content to be processed, the display size corresponding to the preset layer, and the preset sorting method associated with the at least one preset layer; The target layer corresponding to the preset trigger operation is determined based on the transparency information and the association information.

3. The method according to claim 2, wherein, The associated information includes the display order of the at least one preset layer in the media content to be processed; Determining the target layer corresponding to the preset trigger operation based on the transparency information and the association information includes: According to the display order, determine whether the transparency information corresponding to the preset layer meets the preset selection conditions; The first preset layer that meets the preset selection conditions is determined as the target layer.

4. The method according to claim 2, wherein, The associated information includes the display size corresponding to the preset layer; Determining the target layer corresponding to the preset trigger operation based on the transparency information and the association information includes: Based on the transparency information, at least one first layer that meets the preset selection conditions is determined in at least one preset layer; The first layer whose display size meets the preset size condition among the at least one first layer is determined as the target layer.

5. The method according to claim 2, wherein, The association information includes a preset sorting method associated with the at least one preset layer, and determining the target layer corresponding to the preset trigger operation based on the transparency information and the association information includes: The target order of transparency information corresponding to the at least one preset layer is determined according to the preset sorting method; The at least one preset layer is sorted according to the target order to obtain the sorted preset layers. The first preset layer in the sorted preset layers is determined as the target layer.

6. The method according to any one of claims 1-5, wherein, The step of editing the target layer based on the user's triggered operation on the target layer includes: Determine the editing area associated with the target layer; In response to a drag operation triggered by the user targeting the target layer, the target layer is dragged within the editing area.

7. The method according to any one of claims 1-6, wherein, After determining the trigger position corresponding to the preset trigger operation, the method further includes: In response to the user's triggering operation on the preset trigger control at the triggering location, all preset layers corresponding to the triggering location are selected.

8. The method according to any one of claims 1-7, wherein, The step of editing the target layer based on the user's triggered operation on the target layer includes: In response to the user moving a preset material to the trigger position, the display content in the target layer is replaced with the preset material, or the target layer is filled with the preset material.

9. A layer processing apparatus, comprising: The display module is configured to display media content to be processed within a preset display interface, wherein the media content to be processed includes multiple preset layers, and at least some of the preset layers include transparent areas; The determination module is configured to determine the trigger position corresponding to the preset trigger operation in response to a user's preset trigger operation on the media content to be processed; The processing module is configured to determine the transparency information of at least one preset layer corresponding to the trigger position, and determine the target layer corresponding to the preset trigger operation based on the transparency information; The editing module is configured to edit the target layer based on the user's triggered operation on the target layer.

10. An electronic device, comprising: Processor and memory, of which, The memory stores computer-executed instructions; The processor executes computer execution instructions stored in the memory, causing the processor to perform the layer processing method as described in any one of claims 1 to 8.

11. A computer-readable storage medium storing computer-executable instructions, wherein, When the processor executes the computer execution instructions, it implements the layer processing method as described in any one of claims 1 to 8.

Citation Information

Patent Citations

  • Image processing method and system and storage medium

    CN113703652A

  • Image processing method and device, equipment and medium

    CN114332324A

  • Page processing method and device, equipment and storage medium

    CN114428660A

  • Method and device for processing multi-layer image and terminal equipment

    CN116868225A

  • Display method and related device

    WO2022242487A1

Cited By

  • A double-layer photosensitive ink two-dimensional code anti-counterfeiting structure and an anti-counterfeiting verification method

    CN122551659A