CN115577570A - Canvas layer processing method and device, electronic equipment and storage medium - Google Patents
Canvas layer processing method and device, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN115577570A CN115577570A CN202211453214.5A CN202211453214A CN115577570A CN 115577570 A CN115577570 A CN 115577570A CN 202211453214 A CN202211453214 A CN 202211453214A CN 115577570 A CN115577570 A CN 115577570A
- Authority
- CN
- China
- Prior art keywords
- style
- current target
- layer
- user
- attribute
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F30/00—Computer-aided design [CAD]
- G06F30/20—Design optimisation, verification or simulation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T15/00—3D [Three Dimensional] image rendering
- G06T15/005—General purpose rendering architectures
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computer Hardware Design (AREA)
- Evolutionary Computation (AREA)
- Geometry (AREA)
- General Engineering & Computer Science (AREA)
- Computer Graphics (AREA)
- Image Generation (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The application discloses a canvas layer processing method and device, electronic equipment and a storage medium, wherein the method comprises the following steps: responding to the style creating operation of a user on any style type, and creating a current target style; wherein the style types at least comprise a color style, a text style and a special effect style; when the user selects any layer in a canvas and selects the current target style for the layer, rendering the layer according to the attribute of the current target style; when the user modifies the attribute of the current target style, the attribute of the current target style is modified in response to the modification operation of the user; and according to the modified attribute of the current target style, performing batch rendering on all layers using the current target style in the canvas.
Description
Technical Field
The present application relates to the field of product design technologies, and in particular, to a method and an apparatus for processing a canvas layer, an electronic device, and a storage medium.
Background
Currently, in the product design process, the design is generally performed through a special product design tool. When a product is designed in these product design tools, a large number of elements, such as icons, pictures, texts, etc., are designed, and different elements are often located in different layers, so that in the design process, corresponding processing needs to be performed on different layers in response to the operation of a user.
In the current product design tool, a user can set attributes such as filling color, characteristics and fonts aiming at any one layer, at the moment, the tool can correspondingly respond to the operation of the user, corresponding rendering is carried out on the layer, and the layer effect meeting the requirements of the user is presented. Correspondingly, the properties of the designed layer, such as filling color, characteristics, fonts and the like, can also be modified.
However, in the conventional method, the processing for each layer is completely independent, so even if the same setting needs to be performed on different images, the same operation needs to be performed on each layer, and the same modification operation needs to be performed on each layer when modifying, so that the efficiency is relatively low. And the setting data of each layer needs to be stored, so that a large memory is consumed.
Disclosure of Invention
Based on the defects of the prior art, the application provides a processing method and device of a canvas layer, an electronic device and a storage medium, so as to solve the problems of low efficiency and large memory consumption of the prior art.
In order to achieve the above object, the present application provides the following technical solutions:
a first aspect of the present application provides a method for processing a canvas layer, including:
responding to the style creating operation of a user on any style type, and creating a current target style; wherein the style types at least comprise a color style, a text style and a special effect style;
when the user selects any image layer in the canvas and selects the current target pattern for the image layer, rendering the image layer according to the attribute of the current target pattern;
when the user modifies the attribute of the current target style, the attribute of the current target style is modified in response to the modification operation of the user;
and according to the modified attribute of the current target style, performing batch rendering on all layers using the current target style in the canvas.
Optionally, in the above method for processing a canvas layer, the creating a current target style in response to a style creation operation of any style type by a user includes:
determining the layer currently selected by the user in the canvas as a current target layer in response to the layer selection operation of the user;
responding to the style type selected and created by the user, and acquiring the target attribute of the current target layer and style basic information input by the user; the target attribute of the current target layer refers to an attribute belonging to the style type selected by the user in the attributes of the current target layer;
and creating the current target pattern by using the target attribute of the current target layer and the pattern basic information.
Optionally, in the above method for processing canvas layers, when the user selects any layer in a canvas and selects the current target pattern for the layer, rendering the layer according to the attribute of the current target pattern includes:
determining the layer currently selected by the user in the canvas as a current target layer in response to the layer selection operation of the user;
responding to the style type selection operation of the user, and displaying a style list of the style type selected by the user;
and when the user selects the current target style in the style list, rendering the current target layer according to the attribute of the current target style.
Optionally, in the processing method of the canvas layer, the method further includes:
and responding to the deletion operation of the user on the current target style, and performing batch rendering on all layers using the current target style in the canvas according to preset default attributes.
This application second aspect provides a processing apparatus of canvas layer, includes:
the style creating unit is used for responding to the style creating operation of a user on any style type and creating a current target style; wherein the style types at least comprise a color style, a text style and a special effect style;
the pattern application unit is used for rendering the layers according to the attributes of the current target pattern when the user selects any one layer in the canvas and selects the current target pattern for the layers;
the style changing unit is used for responding to the modification operation of the user and modifying the attribute of the current target style when the user modifies the attribute of the current target style;
and the layer changing unit is used for performing batch rendering on all layers using the current target style in the canvas according to the modified attribute of the current target style.
Optionally, in the above processing apparatus of the canvas layer, the style creating unit includes:
the first selection unit is used for responding to the layer selection operation of the user and determining the layer currently selected by the user in the canvas as a current target layer;
the information acquisition unit is used for responding to the style type selected and created by the user and acquiring the target attribute of the current target layer and the style basic information input by the user; the target attribute of the current target layer refers to an attribute belonging to the style type selected by the user in the attributes of the current target layer;
and the creating unit is used for creating the current target pattern by using the target attribute of the current target layer and the pattern basic information.
Optionally, in the above processing apparatus for canvas layers, the style application unit includes:
the second selection unit is used for responding to the layer selection operation of the user and determining the layer currently selected by the user in the canvas as a current target layer;
the list display unit is used for responding to the style type selection operation of the user and displaying the style list of the style type selected by the user;
and the application unit is used for rendering the current target layer according to the attribute of the current target pattern when the user selects the current target pattern in the pattern list.
Optionally, in the processing apparatus of the canvas layer, the apparatus further includes:
and the recovery unit is used for responding to the deletion operation of the current target style by the user and performing batch rendering on all layers using the current target style in the canvas according to preset default attributes.
A third aspect of the present application provides an electronic device, comprising:
a memory and a processor;
wherein the memory is used for storing programs;
the processor is configured to execute the program, and when the program is executed, the program is specifically configured to implement the processing method of the canvas layer according to any one of the above items.
A fourth aspect of the present application provides a computer storage medium for storing a computer program, wherein the computer program is configured to implement the canvas layer processing method according to any one of the above items when executed.
The application provides a canvas layer processing method, which responds to the style creating operation of a user on any style type and creates a current target style. The style types at least comprise a color style, a text style and a special effect style. And when a user selects any layer in the canvas and selects the current target style for the layer, rendering the layer according to the attribute of the current target style. When the user modifies the attribute of the current target style, the modification operation of the user is responded, and the attribute of the current target style is modified; and according to the modified attribute of the current target style, performing batch rendering on all layers using the current target style in the canvas. Therefore, the user can set the pattern in the same way and apply the pattern to the plurality of layers without respectively carrying out design operation on each layer, and when the pattern is modified, each layer applying the pattern can be automatically adjusted correspondingly without respectively adjusting each layer by the user, so that the efficiency is effectively improved. And only the relation between the layers and the patterns needs to be maintained, and the design data of each layer does not need to be maintained respectively, so that the consumption of the memory is effectively reduced.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the embodiments or the prior art descriptions will be briefly described below, it is obvious that the drawings in the following description are only the embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a flowchart of a processing method for a canvas layer according to an embodiment of the present application;
fig. 2 is a flowchart of a method for creating a current target style according to an embodiment of the present application;
FIG. 3 is a diagram illustrating an example of creating a style provided by an embodiment of the present application;
fig. 4 is a flowchart of a method for applying a current user style according to an embodiment of the present application;
FIG. 5 is a diagram illustrating an example of an application style provided by an embodiment of the present application;
fig. 6 is an architecture schematic diagram of a processing apparatus for a canvas layer according to an embodiment of the present application;
fig. 7 is a schematic architecture diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
In this application, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrases "comprising a," "8230," "8230," or "comprising" does not exclude the presence of additional like elements in a process, method, article, or apparatus that comprises the element.
An embodiment of the present application provides a method for processing a canvas layer, as shown in fig. 1, including the following steps:
s101, responding to the style creating operation of a user on any style type, and creating a current target style.
The style types at least comprise a color style, a text style and a special effect style.
The color pattern may be a single color or a combination of a plurality of colors (solid color and gradation). Moreover, the color styles can be used for filling, drawing, text, and the like, that is, the color styles can be divided into different categories according to the application.
The text style may be a combination of multiple related attributes of the text, such as a combination of attributes of font, character weight, font size, and line height, which is mainly applied to the text layer.
The special effect style can be a combination of vulvar shadow, inlier shadow, gaussian blur and background blur, and is maliciously applied to any map layer. And for special effect styles, the attributes thereof may also include position, blur, and extension, etc.
In the embodiment of the application, a user can set a fixed pattern according to requirements, so that the pattern can be directly used for processing a plurality of image layers subsequently.
Optionally, in another embodiment of the present application, a specific implementation manner of step S101, as shown in fig. 2, includes the following steps:
s201, responding to the layer selection operation of the user, and determining the layer selected by the user in the canvas as the current target layer.
It should be noted that, in order to facilitate the creation of the style by the user, in the embodiment of the present application, the user may select an already set layer, and then set the layer to the corresponding style, so that the style may be applied to other layers. Therefore, when the user needs to set the style, the user can select a certain layer from the canvas according to the need, and at the moment, the layer to be set is determined as the current target layer so as to set the style for the current target layer.
S202, responding to the style type selected and created by the user, and acquiring the target attribute of the current target layer and style basic information input by the user.
After selecting the layer, the user may click on a desired created style on a corresponding property panel of the interface, for example, when creating a color style, may select to fill or stroke, etc. Then, by clicking the created virtual key in the style, the style creation is started. In order to distinguish different styles, when creating a style, a user is required to input basic information of the style, such as a style name and a style description. And when the user determines to save, acquiring the target attribute of the current target layer and the style basic information input by the user.
The target attribute of the current target layer refers to an attribute belonging to a style type selected by a user in the attributes of the current target layer. For example, if the user is about to create a color style, the target attribute is the color attribute in the target layer.
S203, creating a current target pattern by using the target attribute and the pattern basic information of the current target layer.
Finally, the current target style is created and presented in the corresponding panel for the user to select.
For example, as shown in FIG. 3, an interface diagram of a color style is created for a user. After selecting the layers, the user selects a "fill" item in the panel, at which point it can be seen that two color styles, "primary blue" and "background color" have been created. The user may start creating a new color style by clicking on the plus sign representing the created style. At this time, the user is required to input the name of the style, for example, the name of "icon-white" is input by the user. After the user clicks save, a color style named "icon-white" is presented in the fill panel.
It should be noted that, after the current target pattern is created, the current target pattern is defaulted to be applied to the current target pattern layer, so that when the current target pattern is subsequently changed, the current target pattern can be uniformly processed to the current target pattern layer.
S102, when a user selects any one layer in the canvas and selects a current target style for the layer, rendering the layer according to the attribute of the current target style.
It should be noted that, when designing, after selecting any one of the layers, the user may directly select a pattern created before, so that the pattern may be directly applied to the selected layer without separate setting. Moreover, a pattern may be applied to any number of layers as desired.
Therefore, after the current target style is created, when a user selects any layer in the canvas and selects the current target style for the layer, the layer is rendered according to the attribute of the current target style. It should be further noted that, in the embodiment of the present application, a current target style is mainly used as an object for description, and for other created styles, after a user selects the style for a layer, the layer is rendered according to an attribute of the style.
For example, a user selects a text layer, and the current target style selected for the layer is a text style, and then the text in the layer is processed according to the attributes of the text size, the font, and the like set in the current target style, so that the attributes of the text in the layer are consistent with the attributes in the current target style.
Optionally, in another embodiment of the present application, as shown in fig. 4, a specific implementation manner of step S102 includes:
s401, responding to the layer selection operation of the user, and determining the layer selected by the user in the canvas as the current target layer.
Specifically, when a user needs to use a created pattern, a layer may be selected first, and at this time, the tool may determine the layer as a current target layer, so as to perform subsequent processing on the layer.
S402, responding to the style type selection operation of the user, and displaying the style list of the style type selected by the user.
After a user selects a layer, the user can find a corresponding type of style in the attribute panel, and by clicking a certain type of style, a style list of the type can be popped up. At this time, the user may select a desired style from the style list, thereby applying the style to the current target layer.
S403, when the user selects the current target style in the style list, rendering the current target layer according to the attribute of the current target style.
Therefore, when the user selects the current target style in the style list, the current target layer is rendered according to the attribute of the current target style, and the style is applied to the current target layer.
For example, as shown in fig. 5, after the user selects the layers, when the property panel selects "fill", a style list of three color styles, including "main blue", "background color", and "icon-white", is popped up. If the user selects the "Primary blue" style, the color of the layer will be rendered blue.
S103, when the user modifies the attribute of the current target style, the attribute of the current target style is modified in response to the modification operation of the user.
It should be noted that, after creating the style, the user may modify the style as needed. It is not necessary that step S103 is performed after step S102, and step S103 may be performed whenever necessary only after the style is created in step S101.
Alternatively, one or more attributes in the current target style may be modified, and the attributes of the current target style may be adjusted accordingly after the user determines to save the modification.
And S104, according to the modified attribute of the current target style, performing batch rendering on all layers using the current target style in the canvas.
It should be noted that, for a current target style or any other style, there may be a plurality of layers to which the style is applied at the same time, and the layers are rendered previously with the attribute of the style and presented on the interface, so after the attribute of the style is modified, all the layers to which the style is applied need to be modified accordingly, that is, all the layers using the style are rendered again according to the attribute of the modified style. Therefore, when the user modifies the attribute of the style, the user can adjust the plurality of layers at the same time without modifying each layer respectively. In addition, only the relation between the pattern and each layer using the pattern needs to be stored, and design data of each layer does not need to be stored respectively, so that the requirement on the memory can be greatly reduced.
Optionally, in another embodiment of the present application, the method may further include:
and responding to the deletion operation of the user on the current target style, and performing batch rendering on all layers using the current target style in the canvas according to preset default attributes.
It should be noted that, when a user does not satisfy a certain style, or there are other requirements, the created and applied style may be selected to be deleted, and at this time, each layer in the canvas to which the style is applied may be restored to an initial default state.
The embodiment of the application provides a canvas layer processing method, which responds to the style creating operation of a user on any style type and creates a current target style. The style types at least comprise a color style, a text style and a special effect style. And when a user selects any layer in the canvas and selects the current target style for the layer, rendering the layer according to the attribute of the current target style. When the user modifies the attribute of the current target style, the modification operation of the user is responded, and the attribute of the current target style is modified; and according to the modified attribute of the current target style, performing batch rendering on all layers using the current target style in the canvas. Therefore, the user can set the pattern in the same way and apply the pattern to the plurality of layers without respectively carrying out design operation on each layer, and when the pattern is modified, each layer applying the pattern can be automatically adjusted correspondingly without respectively adjusting each layer by the user, so that the efficiency is effectively improved. And only the relation between the layers and the patterns needs to be maintained, and the design data of each layer does not need to be maintained, so that the requirement on the memory is effectively reduced.
It is to be noted that the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems that perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
Although the operations are depicted in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous.
Another embodiment of the present application provides a processing apparatus for a canvas layer, as shown in fig. 6, including the following units:
a style creating unit 601, configured to create a current target style in response to a style creating operation of any style type by a user.
The style types at least comprise a color style, a text style and a special effect style.
The style application unit 602 is configured to render the layer according to the attribute of the current target style when the user selects any layer in the canvas and selects the current target style for the layer.
A style changing unit 603, configured to, when the user modifies the attribute of the current target style, modify the attribute of the current target style in response to a modification operation of the user.
And the layer changing unit 604 is configured to perform batch rendering on all layers using the current target style in the canvas according to the modified attribute of the current target style.
Optionally, in a processing apparatus of a canvas layer provided in another embodiment of the present application, a style creating unit includes:
and the first selection unit is used for responding to the layer selection operation of the user and determining the layer currently selected by the user in the canvas as the current target layer.
And the information acquisition unit is used for responding to the style type selected and created by the user and acquiring the target attribute of the current target layer and style basic information input by the user.
The target attributes of the current target layer refer to attributes of the style type selected by the user in the attributes of the current target layer.
And the creating unit is used for creating the current target pattern by using the target attribute and the pattern basic information of the current target layer.
Optionally, in a processing apparatus of a canvas layer provided in another embodiment of the present application, a style application unit includes:
and the second selection unit is used for responding to the layer selection operation of the user and determining the layer currently selected by the user in the canvas as the current target layer.
And the list display unit is used for responding to the style type selection operation of the user and displaying the style list of the style type selected by the user.
And the application unit is used for rendering the current target layer according to the attribute of the current target pattern when the user selects the current target pattern in the pattern list.
Optionally, in a processing apparatus of a canvas layer provided in another embodiment of the present application, further including:
and the recovery unit is used for responding to the deletion operation of the current target style by the user and performing batch rendering on all layers using the current target style in the canvas according to preset default attributes.
It should be noted that, for the specific working processes of each unit provided in the foregoing embodiments of the present application, reference may be made to corresponding steps in the foregoing method embodiments, and details are not described herein again.
Another embodiment of the present application provides an electronic device, as shown in fig. 7, including:
a memory 701 and a processor 702.
The memory 701 is used for storing programs.
The processor 702 is configured to execute a program stored in the memory 701, where the program is specifically configured to implement the canvas layer processing method according to any one of the above embodiments.
Another embodiment of the present application provides a computer storage medium for storing a computer program, and when the computer program is executed, the computer program is used to implement the canvas layer processing method provided in any one of the above embodiments.
Computer storage media, including permanent and non-permanent, removable and non-removable media, may implement the information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims (10)
1. A processing method of a canvas layer is characterized by comprising the following steps:
responding to the style creating operation of a user on any style type, and creating a current target style; the style types at least comprise a color style, a text style and a special effect style;
when the user selects any layer in a canvas and selects the current target style for the layer, rendering the layer according to the attribute of the current target style;
when the user modifies the attribute of the current target style, the attribute of the current target style is modified in response to the modification operation of the user;
and according to the modified attribute of the current target style, performing batch rendering on all layers using the current target style in the canvas.
2. The method according to claim 1, wherein creating a current target style in response to a user style creation operation for any one style type comprises:
determining the layer currently selected by the user in the canvas as a current target layer in response to the layer selection operation of the user;
responding to the style type selected and created by the user, and acquiring the target attribute of the current target layer and style basic information input by the user; the target attribute of the current target layer refers to an attribute belonging to the style type selected by the user in the attributes of the current target layer;
and creating the current target pattern by using the target attribute of the current target layer and the pattern basic information.
3. The method according to claim 1, wherein the rendering the layer according to the attribute of the current target pattern whenever the user selects any layer in a canvas and selects the current target pattern for the layer comprises:
determining the layer currently selected by the user in the canvas as a current target layer in response to the layer selection operation of the user;
responding to the style type selection operation of the user, and displaying a style list of the style type selected by the user;
and when the user selects the current target style in the style list, rendering the current target layer according to the attribute of the current target style.
4. The method of claim 1, further comprising:
and responding to the deletion operation of the user on the current target style, and performing batch rendering on all layers using the current target style in the canvas according to preset default attributes.
5. An apparatus for processing a canvas layer, comprising:
the style creating unit is used for responding to the style creating operation of a user on any style type and creating a current target style; wherein the style types at least comprise a color style, a text style and a special effect style;
the pattern application unit is used for rendering the layers according to the attributes of the current target pattern when the user selects any one layer in the canvas and selects the current target pattern for the layers;
the style changing unit is used for responding to the modification operation of the user and modifying the attribute of the current target style when the user modifies the attribute of the current target style;
and the layer changing unit is used for performing batch rendering on all layers using the current target style in the canvas according to the modified attribute of the current target style.
6. The apparatus of claim 5, wherein the style creating unit comprises:
the first selection unit is used for responding to the layer selection operation of the user and determining the layer currently selected by the user in the canvas as a current target layer;
the information acquisition unit is used for responding to the style type selected and created by the user and acquiring the target attribute of the current target layer and style basic information input by the user; the target attribute of the current target layer refers to an attribute belonging to the style type selected by the user in the attributes of the current target layer;
and the creating unit is used for creating the current target pattern by using the target attribute of the current target layer and the pattern basic information.
7. The apparatus of claim 5, wherein the style application unit comprises:
the second selection unit is used for responding to the layer selection operation of the user and determining the layer currently selected by the user in the canvas as a current target layer;
the list display unit is used for responding to the style type selection operation of the user and displaying the style list of the style type selected by the user;
and the application unit is used for rendering the current target layer according to the attribute of the current target pattern when the user selects the current target pattern in the pattern list.
8. The apparatus of claim 5, further comprising:
and the recovery unit is used for responding to the deletion operation of the current target style by the user and performing batch rendering on all layers using the current target style in the canvas according to preset default attributes.
9. An electronic device, comprising:
a memory and a processor;
wherein the memory is used for storing programs;
the processor is configured to execute the program, and when the program is executed, the program is specifically configured to implement the processing method of the canvas layer according to any one of claims 1 to 4.
10. A computer storage medium storing a computer program which, when executed, implements the canvas layer processing method according to any one of claims 1 to 4.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211453214.5A CN115577570B (en) | 2022-11-21 | 2022-11-21 | Canvas layer processing method and device, electronic equipment and storage medium |
PCT/CN2023/128984 WO2024109510A1 (en) | 2022-11-21 | 2023-11-01 | Canvas layer processing method and apparatus, and electronic device and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211453214.5A CN115577570B (en) | 2022-11-21 | 2022-11-21 | Canvas layer processing method and device, electronic equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN115577570A true CN115577570A (en) | 2023-01-06 |
CN115577570B CN115577570B (en) | 2023-07-14 |
Family
ID=84588979
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211453214.5A Active CN115577570B (en) | 2022-11-21 | 2022-11-21 | Canvas layer processing method and device, electronic equipment and storage medium |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN115577570B (en) |
WO (1) | WO2024109510A1 (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116149779A (en) * | 2023-04-19 | 2023-05-23 | 北京尽微致广信息技术有限公司 | Style creation method and device |
CN118095206A (en) * | 2024-04-26 | 2024-05-28 | 山东捷瑞数字科技股份有限公司 | Batch updating method, device, equipment and medium for text layer formats in video |
WO2024109510A1 (en) * | 2022-11-21 | 2024-05-30 | 北京创作美好科技有限公司 | Canvas layer processing method and apparatus, and electronic device and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080018665A1 (en) * | 2006-07-24 | 2008-01-24 | Jay Behr | System and method for visualizing drawing style layer combinations |
CN108052365A (en) * | 2017-12-19 | 2018-05-18 | 深圳市四格互联信息技术有限公司 | The component generation method and device of user interface |
CN113284407A (en) * | 2021-05-25 | 2021-08-20 | 中国航空无线电电子研究所 | Geographic element map matching system supporting multiple map sources and multiple scales |
CN114780077A (en) * | 2022-04-18 | 2022-07-22 | 厦门稿定股份有限公司 | Webpage visual editing device and method |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104731815B (en) * | 2013-12-23 | 2019-06-07 | 腾讯科技(深圳)有限公司 | A kind of method for drafting and device of web page element |
US9865181B2 (en) * | 2014-05-15 | 2018-01-09 | Rolta India Ltd | Use of style sets to assist a user in digitizing GIS layers |
CN105608127B (en) * | 2015-12-16 | 2019-03-05 | 江西理工大学 | A kind of farmland ownership publicity figure automatic generation method |
CN115577570B (en) * | 2022-11-21 | 2023-07-14 | 北京尽微致广信息技术有限公司 | Canvas layer processing method and device, electronic equipment and storage medium |
-
2022
- 2022-11-21 CN CN202211453214.5A patent/CN115577570B/en active Active
-
2023
- 2023-11-01 WO PCT/CN2023/128984 patent/WO2024109510A1/en unknown
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080018665A1 (en) * | 2006-07-24 | 2008-01-24 | Jay Behr | System and method for visualizing drawing style layer combinations |
CN108052365A (en) * | 2017-12-19 | 2018-05-18 | 深圳市四格互联信息技术有限公司 | The component generation method and device of user interface |
CN113284407A (en) * | 2021-05-25 | 2021-08-20 | 中国航空无线电电子研究所 | Geographic element map matching system supporting multiple map sources and multiple scales |
CN114780077A (en) * | 2022-04-18 | 2022-07-22 | 厦门稿定股份有限公司 | Webpage visual editing device and method |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2024109510A1 (en) * | 2022-11-21 | 2024-05-30 | 北京创作美好科技有限公司 | Canvas layer processing method and apparatus, and electronic device and storage medium |
CN116149779A (en) * | 2023-04-19 | 2023-05-23 | 北京尽微致广信息技术有限公司 | Style creation method and device |
CN118095206A (en) * | 2024-04-26 | 2024-05-28 | 山东捷瑞数字科技股份有限公司 | Batch updating method, device, equipment and medium for text layer formats in video |
Also Published As
Publication number | Publication date |
---|---|
WO2024109510A1 (en) | 2024-05-30 |
CN115577570B (en) | 2023-07-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN115577570B (en) | Canvas layer processing method and device, electronic equipment and storage medium | |
CN110266971B (en) | Short video making method and system | |
US11670016B2 (en) | System for supporting flexible color assignment in complex documents | |
US8786628B2 (en) | Rendering electronic chart objects | |
US9037974B2 (en) | Creating and editing dynamic graphics via a web interface | |
US7061498B2 (en) | Screen display processing apparatus, screen display processing method and computer program | |
US20120127198A1 (en) | Selection of foreground characteristics based on background | |
US8631347B2 (en) | Electronic document style matrix | |
US7688317B2 (en) | Texture mapping 2-D text properties to 3-D text | |
AU2005202722A1 (en) | Common charting using shapes | |
CN111221596A (en) | Font rendering method and device and computer readable storage medium | |
US20230377228A1 (en) | Map data visualizations with multiple superimposed marks layers | |
CN114168238A (en) | Method, system, and computer-readable storage medium implemented by a computing device | |
CN111090384B (en) | Soft keyboard display method and device | |
US20100021060A1 (en) | Method for overlapping visual slices | |
CN114995699B (en) | Interface interaction method and device | |
US6356267B1 (en) | Method of creating two dimensional shapes drawing system | |
JP2001166754A (en) | Display system | |
US20240153171A1 (en) | Binding data to graphic objects using a visual indicator | |
US20240153172A1 (en) | Automatically generating axes for data visualizations including data bound objects | |
US20240153155A1 (en) | Mapping color to data for data bound objects | |
CA2741743C (en) | Hardware accelerated caret rendering | |
US20240153170A1 (en) | Managing multiple datasets for data bound objects | |
CN112070656B (en) | Frame data modification method and device | |
US20230185976A1 (en) | Systems and methods for editing and rendering tables |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right |
Effective date of registration: 20230807 Address after: Room 5, Room 324201, 42nd Floor, Unit 2, Building 5, Courtyard 1, Futong East Street, Chaoyang District, Beijing, 100102 Patentee after: Beijing Creative Beautiful Technology Co.,Ltd. Address before: Room 324201, 42nd floor, unit 2, building 5, courtyard 1, Futong East Street, Chaoyang District, Beijing 100102 Patentee before: Beijing Jinwei Zhiguang Information Technology Co.,Ltd. |
|
TR01 | Transfer of patent right |