CN112487769B - Cell background generation method and device - Google Patents

Cell background generation method and device Download PDF

Info

Publication number
CN112487769B
CN112487769B CN201910786752.8A CN201910786752A CN112487769B CN 112487769 B CN112487769 B CN 112487769B CN 201910786752 A CN201910786752 A CN 201910786752A CN 112487769 B CN112487769 B CN 112487769B
Authority
CN
China
Prior art keywords
background
cell
shape
determined
cells
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.)
Active
Application number
CN201910786752.8A
Other languages
Chinese (zh)
Other versions
CN112487769A (en
Inventor
陈嘉华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Kingsoft Office Software Inc
Zhuhai Kingsoft Office Software Co Ltd
Original Assignee
Beijing Kingsoft Office Software Inc
Zhuhai Kingsoft Office Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Kingsoft Office Software Inc, Zhuhai Kingsoft Office Software Co Ltd filed Critical Beijing Kingsoft Office Software Inc
Priority to CN201910786752.8A priority Critical patent/CN112487769B/en
Publication of CN112487769A publication Critical patent/CN112487769A/en
Application granted granted Critical
Publication of CN112487769B publication Critical patent/CN112487769B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Processing Or Creating Images (AREA)
  • Editing Of Facsimile Originals (AREA)

Abstract

The embodiment of the invention provides a background generation method and device for a cell, and relates to the technical field of document processing. The method comprises the following steps: determining cells of a background to be set; acquiring a background shape of the background of the determined cell according to a background setting instruction for the determined cell; calculating a background area of the determined cell according to the shape parameters of the background shape; and generating the background of the cell in the calculated background area. When the method and the device for generating the cell background are applied, operation steps of a user can be reduced, and the cell background generation efficiency is improved.

Description

Cell background generation method and device
Technical Field
The present invention relates to the field of document processing technologies, and in particular, to a method and an apparatus for generating a background of a cell.
Background
In processing a spreadsheet, a user is often required to set the context of cells in the spreadsheet, where the context of cells may include attributes such as background color, background texture, and the like.
For example: the user will display a progress chart containing text in the spreadsheet. At this time, the user can set the background for one cell of which the text is already input as "progress one" and three cells on the right side of the cell by setting the background setting instruction of the cell. In this case, the spreadsheet will generate a background of the user selected background color in all areas of the four cells described above, with the effect shown in FIG. 1.
However, if the user wants to set a background of a specific shape to the above four cells, the effect is as shown in fig. 2. In the prior art, a picture of a specific shape needs to be inserted on the background of the four cells as the background of the four cells. But in the case that text has been entered in a cell, the inserted picture will overlay the text in the cell. Then after inserting the above-mentioned picture of specific shape into the cell, it is also necessary to input the overlaid text on the picture to successfully generate the background of the cell. Therefore, when the cell background is generated, the steps are complicated, and the efficiency is low.
Disclosure of Invention
The embodiment of the invention aims to provide a method and a device for generating cell background so as to improve the generation efficiency of cell background. The specific technical scheme is as follows:
In a first aspect, an embodiment of the present invention provides a method for generating a background of a cell, where the method includes:
determining cells of a background to be set;
Acquiring a background shape of the background of the determined cell according to a background setting instruction for the determined cell;
calculating a background area of the determined cell according to the shape parameter of the background shape;
and generating the background of the cell in the calculated background area.
In one embodiment of the present invention, the calculating the background area of the determined cell according to the shape parameter of the background shape includes:
and when the determined cells are at least two cells which are adjacent in sequence, taking all the determined cells as an integral setting object, and calculating a background area of the integral setting object according to the shape parameters of the background shape.
In one embodiment of the present invention, the calculating the background area of the determined cell according to the shape parameter of the background shape includes:
and respectively taking each determined cell as an individual setting object, and respectively calculating the background area of each individual setting object according to the shape parameters of the background shape.
In one embodiment of the present invention, the calculating the background area of the determined cell according to the shape parameter of the background shape includes:
calculating pixel points representing the outline of the background area in the determined cells according to the shape parameters of the background shape;
and determining the area surrounded by the calculated pixel points as the background area of the determined cell.
In a second aspect, an embodiment of the present invention provides a background generating device for a cell, where the device includes:
the cell determining module is used for determining cells of the background to be set;
the background shape acquisition module is used for acquiring the background shape of the background of the determined cell according to the background setting instruction for the determined cell;
the background area calculation module is used for calculating the background area of the determined cell according to the shape parameters of the background shape;
and the background generation module is used for generating the background of the cell in the calculated background area.
In an embodiment of the present invention, the background area calculation module is specifically configured to:
and when the determined cells are at least two cells which are adjacent in sequence, taking all the determined cells as an integral setting object, and calculating a background area of the integral setting object according to the shape parameters of the background shape.
In an embodiment of the present invention, the background area calculation module is specifically configured to:
and respectively taking each determined cell as an individual setting object, and respectively calculating the background area of each individual setting object according to the shape parameters of the background shape.
In an embodiment of the present invention, the background area calculation module is specifically configured to:
calculating pixel points representing the outline of the background area in the determined cells according to the shape parameters of the background shape;
and determining the area surrounded by the calculated pixel points as the background area of the determined cell.
In a third aspect, an embodiment of the present invention provides a terminal device, including a processor, a communication interface, a memory, and a communication bus, where the processor, the communication interface, and the memory complete communication with each other through the communication bus;
A memory for storing a computer program;
And a processor, configured to implement the method steps described in the first aspect when executing the program stored in the memory.
In a fourth aspect, embodiments of the present invention provide a computer-readable storage medium having stored therein a computer program which, when executed by a processor, implements the method steps of the first aspect described above.
From the above, when the scheme provided by the embodiment of the invention is applied to generate the cell background, determining the cell of the background to be set; acquiring a background shape of the background of the determined cell according to a background setting instruction for the determined cell; calculating a background area of the determined cell according to the shape parameter of the background shape; and generating the background of the cell in the calculated background area. When the scheme provided by the embodiment of the invention is applied to generating the background of the cell, the background is realized by the background setting instruction of the cell, and the background set by the background setting instruction is positioned at the bottommost layer of the cell, so that the text on the cell cannot be covered after the background of the cell is generated. In addition, in the scheme provided by the embodiment of the invention, the background shape is obtained according to the background setting instruction, so that the finally generated cell background is generated according to the background shape, and the background with the specific shape can be generated for the cell. By combining the above, compared with the prior art, the method can reduce the operation steps of users and improve the generation efficiency of cell backgrounds.
Drawings
In order to more clearly illustrate the embodiments of the invention or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is an effect diagram of a cell background;
FIG. 2 is an effect diagram of another cell background;
fig. 3 is a flowchart of a background generation method of a cell according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of a menu item of a cell background style provided by an embodiment of the present invention;
FIG. 5 is a schematic diagram of an alternative background shape provided by an embodiment of the present invention;
FIG. 6 is a schematic diagram of a cell background effect generated by applying the scheme provided by the embodiment of the invention;
FIG. 7 is a schematic diagram of another cell background effect generated by applying the scheme provided by the embodiment of the invention;
fig. 8 is a schematic structural diagram of a background generating device for a cell according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of a terminal device according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Referring to fig. 3, fig. 3 is a flowchart of a background generating method of a cell according to an embodiment of the present invention, where the background generating method of a cell includes the following steps:
S301: the cells to be set with the background are determined.
The cell to be set with the background may be one cell, or may be two or more cells. When the cells to be set with the background are two or more cells, the cells may be cells adjacent to each other, or cells not adjacent to each other, which is not limited in the embodiment of the present invention.
S302: according to the background setting instruction for the determined cell, the background shape of the background of the determined cell is acquired.
Since the cells have the property of background. The attribute of the background can also have parameters such as background color, background texture and the like. In this embodiment, the attribute of the background may have parameters such as a background color, a background texture, and a background shape.
The background setting instruction may be generated by the user clicking on a menu item.
For example: fig. 4 is a schematic diagram of a menu item in a cell background style according to an embodiment of the present invention, as shown in fig. 4. In this case, the user may click on the menu item "set cell background style" in fig. 4, so that the execution body of the present embodiment may acquire an alternative to the background shape. As shown in fig. 5, fig. 5 is a schematic diagram of an alternative background shape provided in an embodiment of the present invention. As can be seen in fig. 5, alternatives to the background shape may include alternatives to rounded squares, circles, stars, etc. If the user clicks the alternative of "rounded square" in the alternatives shown in fig. 5, the execution body of the embodiment of the present invention may generate a background setting instruction for setting the background of the determined cell, and obtain, according to the alternative of "rounded square" selected by the user click, that the background shape of the background of the determined cell is rounded square.
S303: the background area of the determined cell is calculated from the shape parameters of the background shape.
Wherein the shape parameters of the background shape can be understood as the relevant parameters for describing the background shape. For example: the shape parameters of the round corner square can be radians corresponding to the four round corners; the shape parameter of the triangle is the angle corresponding to the three angles.
Specifically, when the determined unit cell is at least two unit cells adjacent in sequence, all the determined unit cells can be taken as an overall setting object, and the background area of the overall setting object is calculated according to the shape parameters of the background shape.
The entire installation object is understood to mean that all the cells specified are taken as one entire cell, that is to say that, when the background region of the entire installation object is calculated, one background region is calculated in the region of all the cells specified.
For example: when all the determined cells are 4 cells which are adjacent in sequence and the background shape is rounded square, the 4 cells can be set as an overall setting object, that is, an overall cell. When the background area of the whole set object is calculated, 4 cells are taken as a whole cell, and a round square can be obtained as the background area on the whole cell.
Specifically, each cell is used as an individual setting object, and the background area of each individual setting object is calculated according to the shape parameters of the background shape.
The individual setting object is understood to mean that each of all the cells determined is taken as an individual cell, that is to say, when calculating the background area of the individual setting object, a background area is calculated in the area of each cell determined.
For example: when all the determined cells are 4 cells that are adjacent in sequence and the background shape is a rounded square, each cell of the 4 cells may be regarded as each individual setting object. The background area of the individual setting object, that is, the background area of each cell is calculated. One rounded square can be obtained on each cell as a background area, and then 4 rounded squares can be obtained on these 4 cells as background areas.
S304: and generating the background of the cell in the calculated background area.
After the background area is obtained, information such as background color, background texture and the like of the cell background can be obtained, and then the background area is filled according to the obtained background color and background texture, so that the cell background is generated.
Specifically, the background color may be a default background color, or may be a background color selected by the user. Similarly, the background texture may be a default background texture, or may be a background texture selected by the user.
From the above, when the scheme provided by the embodiment is applied to generate the background of the cell, the cell of the background to be set is determined; acquiring a background shape of the background of the determined cell according to a background setting instruction for the determined cell; calculating a background area of the determined cell according to the shape parameter of the background shape; and generating the background of the cell in the calculated background area. When the scheme provided by the embodiment of the invention is applied to generating the background of the cell, the background is realized by the background setting instruction of the cell, and the background set by the background setting instruction is positioned at the bottommost layer of the cell, so that the text on the cell cannot be covered after the background of the cell is generated. In addition, in the scheme provided by the embodiment of the invention, the background shape is obtained according to the background setting instruction, so that the finally generated cell background is generated according to the background shape, and the background with the specific shape can be generated for the cell. By combining the above, compared with the prior art, the method can reduce the operation steps of users and improve the generation efficiency of cell backgrounds.
In one embodiment of the present invention, when calculating the background area of the determined cell according to the shape parameter of the background shape in S303, the following steps a and B may be performed.
Step A: and calculating pixel points representing the outline of the background area in the determined cells according to the shape parameters of the background shape.
Specifically, the position of each pixel point representing the outline of the background area in the determined cell may be calculated according to the shape parameter of the background shape, the length and width of the determined cell.
Since the determined cell can be set as one whole object, the length and width of the determined cell are the length and width of the whole object corresponding to the determined cell.
In addition, since the determined units may also be individually set as the objects, the length and width of the determined unit cells are set for the individual corresponding to each unit cell, that is, the length and width of each unit cell.
The following describes pixel points representing the outline of the background area by way of example.
Assuming that the background shape is a rounded square, the shape parameter of the rounded square is the radian of four rounded corners, and the radian of each rounded corner is 90 °. The determined unit cell is four adjacent unit cells, and each unit cell is 50 pixel points long and 25 pixel points wide.
In the first case, the determined cell is the whole set object.
In this case, the length of the overall setting object corresponding to the four adjacent cells is 50×4=200 pixels, and the width is 25 pixels, and then the positions of the pixels on the four rounded corners of the background area outline are respectively:
{(10,0) (9,1) (8,2)……(2,8) (1,9) (0,10)},
{(0,15) (1,16) (2,17)……(8,23) (9,24) (10,25),},
{(190,25) (191,24) (192,23)……(198,17) (199,16) (200,15)},
{(200,10) (199,9) (198,8)……(192,2) (191,1) (191,0)}。
the positions of other pixel points of the background area outline are respectively as follows:
(11,25)、(12,25)、(13,25)、……(187,25)、(188,25)、(189,25)、……(200,14)、(200,13)、(200,12)、(200,11)、(189,0)、(188,0)、(187,0)、……(13,0)、(12,0)、(11,0)、(0,11)、(0,12)、(0,13)、(0,14).
In case two, the determined cell sets an object for the individual.
In this case, the length of the individual setting object corresponding to each of the four adjacent cells is 50 pixels, the width is 25 pixels, and then the positions of the pixels on the four rounded corners of the background area outline are respectively:
{(10,0) (9,1) (8,2)……(2,8) (1,9) (0,10)},
{(0,15) (1,16) (2,17)……(8,23) (9,24) (10,25)},
{(40,25) (41,24) (42,23)……(48,17) (49,16) (40,15)},
{(40,10) (49,9) (48,8)……(42,2) (41,1) (41,0)}
the positions of other pixel points of the background area outline are respectively as follows:
(11,25)、(12,25)、(13,25)、……(37,25)、(38,25)、(39,25)、……(50,14)、(50,13)、(50,12)、(50,11)、(39,0)、(38,0)、(37,0)、……(13,0)、(12,0)、(11,0)、(0,11)、(0,12)、(0,13)、(0,14).
And (B) step (B): and determining the area surrounded by the calculated pixel points as the background area of the determined cell.
The pixel points obtained by the calculation are sequentially arranged according to the positions of the pixel points, so that a shape can be formed, and the shape can be considered as the outline of the background area.
When the determined cells are one whole set object, a shape can be obtained, and the area formed by the shape can be used as the background area of all the determined cells. As shown in fig. 6, fig. 6 is a schematic diagram of a background effect of a cell generated by applying the scheme provided by the embodiment of the present invention, in fig. 6, there is a rounded square, where the rounded square is a background area of 4 cells.
When the determined cells are individual setting objects, a plurality of shapes may be obtained, and the area formed by each shape may be used as the background area of each determined cell. As shown in fig. 7, fig. 7 is a schematic diagram of a background effect of a cell generated by applying the scheme provided by the embodiment of the present invention, in fig. 7, there are 4 rounded square shapes, and each rounded square shape is a background area of each cell.
From the above, according to the background shape selected by the user, the pixel points of the background area outline are calculated according to the shape parameter of the background shape, so as to determine the background area of the cell, and the generated background area can be required by the user.
Referring to fig. 8, fig. 8 is a schematic structural diagram of a background generating device for a cell according to an embodiment of the present invention, where the background generating device for a cell includes the following modules:
The cell determining module 801 is configured to determine a cell to be set with a background.
A background shape acquisition module 802, configured to acquire a background shape of a background of the determined cell according to a background setting instruction for the determined cell.
The background area calculating module 803 is configured to calculate a background area of the determined cell according to the shape parameter of the background shape.
The background generating module 804 is configured to generate the background of the cell in the calculated background area.
As can be seen from the above, when the scheme provided by the embodiment is applied to generating the background of the cell, the background set by the background setting instruction is located at the bottommost layer of the cell, so that after the background of the cell is generated, the text on the cell is not covered. In addition, in the solution provided in the present embodiment, the background shape is obtained according to the background setting instruction, so that the finally generated background of the cell is generated according to the background shape, so that the background of the specific shape can be generated for the cell. By combining the above, compared with the prior art, the method can reduce the operation steps of users and improve the generation efficiency of cell backgrounds.
In one embodiment of the present invention, the background area calculating module 803 is specifically configured to:
When the determined cells are at least two cells which are adjacent in sequence, taking all the determined cells as an integral setting object, and calculating a background area of the integral setting object according to the shape parameters of the background shape.
As can be seen from the above, in the solution provided in this embodiment, when determining at least two cells that are adjacent in sequence, the multiple cells can be used as an integral cell, and a continuous background area is generated in the multiple cells, so that the requirement of a user for setting a shaped background area in the multiple cells can be met.
In one embodiment of the present invention, the background area calculating module 803 is specifically configured to:
and respectively taking each determined cell as an individual setting object, and respectively calculating the background area of each individual setting object according to the shape parameters of the background shape.
As can be seen from the above, in the solution provided in this embodiment, when determining at least two cells that are adjacent in sequence, a continuous background area can be generated in each of the cells, so as to meet the requirement that a user sets a background area on each of the cells.
In one embodiment of the present invention, the background area calculating module 803 is specifically configured to:
Calculating pixel points representing the outline of the background area in the determined cells according to the shape parameters of the background shape;
and determining the area surrounded by the calculated pixel points as the background area of the determined cell.
From the above, according to the background shape selected by the user, the pixel points of the background area outline are calculated according to the shape parameters of the background shape, so that the background area of the cell is determined, and the generated background area can be required by the user.
Referring to fig. 9, fig. 9 is a schematic structural diagram of a terminal device according to an embodiment of the present invention, which includes a processor 901, a communication interface 902, a memory 903 and a communication bus 904, wherein the processor 901, the communication interface 902, and the memory 903 communicate with each other through the communication bus 904,
A memory 903 for storing a computer program;
The processor 901 is configured to execute the background generation method steps of the cells provided in the foregoing method embodiment when executing the program stored in the memory 903.
The communication bus mentioned above for the electronic device may be a peripheral component interconnect standard (PERIPHERAL COMPONENT INTERCONNECT, PCI) bus or an extended industry standard architecture (Extended Industry Standard Architecture, EISA) bus, etc. The communication bus may be classified as an address bus, a data bus, a control bus, or the like. For ease of illustration, the figures are shown with only one bold line, but not with only one bus or one type of bus.
The communication interface is used for communication between the electronic device and other devices.
The Memory may include random access Memory (Random Access Memory, RAM) or may include Non-Volatile Memory (NVM), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the aforementioned processor.
The processor may be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU), a network processor (Network Processor, NP), etc.; but may also be a digital signal processor (DIGITAL SIGNAL Processing, DSP), application SPECIFIC INTEGRATED Circuit (ASIC), field-Programmable gate array (Field-Programmable GATE ARRAY, FPGA) or other Programmable logic device, discrete gate or transistor logic device, discrete hardware components.
In yet another embodiment of the present invention, there is also provided a computer readable storage medium having a computer program stored therein, the computer program being executed by a processor to perform the background generation method steps of the cells provided by the foregoing method embodiments.
In yet another embodiment of the present invention, there is also provided a computer program product containing instructions which, when run on a computer, cause the computer to perform the background generation method steps of the cells provided by the foregoing method embodiments.
As can be seen from the above, when the background of the cell is generated by the terminal device provided in the above embodiment and when the background of the cell is generated by executing the computer program stored in the machine-readable storage medium, the background set by the background setting instruction is located at the bottommost layer of the cell, so that the text on the cell is not covered after the background of the cell is generated. In addition, in the solutions provided in the above embodiments, the background shape is obtained according to the background setting instruction, and therefore, the background of the finally generated cell is generated according to the above background shape, so that the background of the specific shape can be generated for the cell. By combining the above, compared with the prior art, the method can reduce the operation steps of users and improve the generation efficiency of cell backgrounds.
In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the processes or functions in accordance with embodiments of the present invention are produced in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in or transmitted from one computer-readable storage medium to another, for example, by wired (e.g., coaxial cable, fiber optic, digital Subscriber Line (DSL)), or wireless (e.g., infrared, wireless, microwave, etc.) means from one website, computer, server, or data center. Computer readable storage media can be any available media that can be accessed by a computer or data storage devices, such as servers, data centers, etc., that contain an integration of one or more available media. Usable media may be magnetic media (e.g., floppy disks, hard disks, magnetic tape), optical media (e.g., DVD), or semiconductor media (e.g., solid state disk Solid STATE DISK (SSD)), among others.
It is noted that relational terms such as first and second, and the like are 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. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises an element.
In this specification, each embodiment is described in a related manner, and identical and similar parts of each embodiment are all referred to each other, and each embodiment mainly describes differences from other embodiments. In particular, for the apparatus, the terminal device and the computer readable medium, the description is relatively simple, as it is substantially similar to the method embodiments, and relevant points are found in the partial description of the method embodiments.
The foregoing is merely illustrative of the preferred embodiments of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention are included in the protection scope of the present invention.

Claims (10)

1. A method for generating a background of a cell, the method comprising:
determining cells of a background to be set;
Acquiring selected alternatives, and generating a background setting instruction for setting the determined cell background based on the alternatives;
Acquiring a background shape of the background of the determined cell according to a background setting instruction for the determined cell;
calculating a background area of the determined cell according to the shape parameter of the background shape, including: according to the shape parameters of the background shape, calculating pixel points representing the background area outline of all cells or each cell in the determined cells, and determining the background area of the determined cells based on the pixel points;
generating a background of the cell in the calculated background area; wherein the background of the generated cell is located at the bottom layer of the cell.
2. The method of claim 1, wherein calculating the background area of the determined cell from the shape parameters of the background shape comprises:
and when the determined cells are at least two cells which are adjacent in sequence, taking all the determined cells as an integral setting object, and calculating a background area of the integral setting object according to the shape parameters of the background shape.
3. The method of claim 1, wherein calculating the background area of the determined cell from the shape parameters of the background shape comprises:
And respectively taking each determined cell as an individual setting object, and respectively calculating the background area of each individual setting object according to the shape parameters of the background shape.
4. The method of claim 1, wherein calculating the background area of the determined cell from the shape parameters of the background shape comprises:
calculating pixel points representing the outline of the background area in the determined cells according to the shape parameters of the background shape;
and determining the area surrounded by the calculated pixel points as the background area of the determined cell.
5. A background generation apparatus for a cell, the apparatus comprising:
the cell determining module is used for determining cells of the background to be set;
the background instruction setting module is used for acquiring the selected alternative options and generating a background setting instruction for setting the determined cell background based on the alternative options;
the background shape acquisition module is used for acquiring the background shape of the background of the determined cell according to the background setting instruction for the determined cell;
A background area calculating module, configured to calculate a background area of the determined cell according to a shape parameter of the background shape, including: according to the shape parameters of the background shape, calculating pixel points representing the background area outline of all cells or each cell in the determined cells, and determining the background area of the determined cells based on the pixel points;
The background generation module is used for generating the background of the cell in the calculated background area; wherein the background of the generated cell is located at the bottom layer of the cell.
6. The apparatus according to claim 5, wherein the background area calculation module is specifically configured to:
and when the determined cells are at least two cells which are adjacent in sequence, taking all the determined cells as an integral setting object, and calculating a background area of the integral setting object according to the shape parameters of the background shape.
7. The apparatus according to claim 5, wherein the background area calculation module is specifically configured to:
And respectively taking each determined cell as an individual setting object, and respectively calculating the background area of each individual setting object according to the shape parameters of the background shape.
8. The apparatus according to claim 5, wherein the background area calculation module is specifically configured to:
calculating pixel points representing the outline of the background area in the determined cells according to the shape parameters of the background shape;
and determining the area surrounded by the calculated pixel points as the background area of the determined cell.
9. The terminal equipment is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory are communicated with each other through the communication bus;
A memory for storing a computer program;
a processor for carrying out the method steps of any one of claims 1-4 when executing a program stored on a memory.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored therein a computer program which, when executed by a processor, implements the method steps of any of claims 1-4.
CN201910786752.8A 2019-08-23 2019-08-23 Cell background generation method and device Active CN112487769B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910786752.8A CN112487769B (en) 2019-08-23 2019-08-23 Cell background generation method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910786752.8A CN112487769B (en) 2019-08-23 2019-08-23 Cell background generation method and device

Publications (2)

Publication Number Publication Date
CN112487769A CN112487769A (en) 2021-03-12
CN112487769B true CN112487769B (en) 2024-07-23

Family

ID=74920331

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910786752.8A Active CN112487769B (en) 2019-08-23 2019-08-23 Cell background generation method and device

Country Status (1)

Country Link
CN (1) CN112487769B (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109408764A (en) * 2018-11-28 2019-03-01 南京赛克蓝德网络科技有限公司 Page area division methods, calculate equipment and medium at device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102103645A (en) * 2009-12-18 2011-06-22 安世亚太科技(北京)有限公司 Method and the device for generating component models
CN102043586B (en) * 2010-12-21 2012-11-14 无锡永中软件有限公司 Method and device for displaying background color in electronic form

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109408764A (en) * 2018-11-28 2019-03-01 南京赛克蓝德网络科技有限公司 Page area division methods, calculate equipment and medium at device

Also Published As

Publication number Publication date
CN112487769A (en) 2021-03-12

Similar Documents

Publication Publication Date Title
JP6479142B2 (en) Image identification and organization according to layout without user intervention
CN109753641B (en) Method and device for changing object position, electronic equipment and storage medium
CN109783757B (en) Method, device and system for rendering webpage, storage medium and electronic device
US20160349964A1 (en) Method and computing device for performing operation on icon cell
CN111476718A (en) Image amplification method and device, storage medium and terminal equipment
CN109710362B (en) Screenshot processing method, computing device and computer storage medium
US9911201B2 (en) Imaging process initialization techniques
CN110543450A (en) Electronic document generation method and device, computer equipment and storage medium
CN110991050B (en) CAD (computer-aided design) image stacking method and related product
CN112487769B (en) Cell background generation method and device
CN112669432A (en) Volume cloud rendering method and device, electronic equipment and storage medium
CN107679222A (en) Image processing method, mobile terminal and computer-readable recording medium
CN109284598B (en) Method for generating electronic identity card on education cloud platform page and electronic equipment
US20200410724A1 (en) Freeform Gradient Style Blending
CN106776749A (en) Modes to open a file method to set up and system
CN114693893B (en) Data processing method and device, electronic equipment and storage medium
CN110648402A (en) Method, device and equipment for placing virtual object along curve
CN110019492B (en) Information display method and device
WO2017011680A1 (en) Device and method for processing data
US11782850B2 (en) Information processing method, server, terminal, and computer storage medium
CN111767700B (en) Graph adjustment method and device
CN113872798A (en) Method and device for constructing space network topological graph, storage medium and electronic equipment
CN110287437B (en) Webpage screenshot method and device, storage medium and terminal
CN112417832B (en) Method and device for converting format of electronic form document and electronic equipment
US10740937B1 (en) Freeform gradient style transfer

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