Projection method and device in image processing, electronic equipment and storage medium
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- BEIJING YIXIN TECH CO LTD
- Filing Date
- 2021-06-15
- Publication Date
- 2026-08-07
AI Technical Summary
本方案先显示控制面板,该控制面板包括调整框及显示在调整框内的调整条,调整条至少包括第一端点和第二端点。然后检测作用于第一端点和/或第二端点的调整操作;根据该调整操作,调整第一端点和/或第二端点在调整框内的位置,再根据调整条在调整框内的呈现状态,确定投射对象的投射效果。通过第一端点和第二端点的调整操作,调整调整条在调整框中的位置和呈现状态,然后根据调整条在控制面板中的呈现状态,调整投射对象的投射效果。
Smart Images

Figure CN115482303B_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of image processing technology, and in particular to a projection method, apparatus, electronic device and storage medium for image and text processing. Background Technology
[0002] With the development of computer technology, it is being used in more and more fields. Image processing technology is an important component of computer technology. Through image processing, various image-related objects can be processed to obtain image processing results according to actual business needs.
[0003] Image processing technology includes various processing methods, such as filling the area to be filled through projection. By filling the area to be filled, corresponding business requirements can be met. Summary of the Invention
[0004] This disclosure provides a projection method, apparatus, electronic device, and storage medium for image and text processing.
[0005] A first aspect of this disclosure provides a projection method in image processing, comprising: displaying a control panel; wherein the control panel includes: an adjustment frame and an adjustment bar displayed within the adjustment frame; wherein the adjustment bar includes at least: a first endpoint and a second endpoint; detecting an adjustment operation applied to the first endpoint and / or the second endpoint; adjusting the position of the first endpoint and / or the second endpoint within the adjustment frame according to the adjustment operation; and determining the projection effect of the projected object according to the presentation state of the adjustment bar within the adjustment frame.
[0006] In one embodiment, the projection object includes: a target area to be filled and text to which a shadow is to be added; adjusting the projection effect of the projection object according to the presentation state of the adjustment bar within the adjustment box includes: adjusting the projection effect of the projection object according to the presentation state of the adjustment bar within the adjustment box and the projection object.
[0007] In one embodiment, adjusting the projection effect of the projection object based on the presentation state of the adjustment bar within the adjustment box and the projection object includes: when the projection object is the target area to be filled, determining the filling effect of the target area based on the presentation state of the adjustment bar within the adjustment box and the currently applied target filling mode, wherein different target filling modes correspond to different filling effects.
[0008] In one embodiment, the target filling pattern includes: a first filling pattern, the filling effect of which includes: sequentially filling the target area with at least two fillers according to a predetermined path within the target area; wherein the predetermined path includes: the diagonal of the target area when it is a rectangle, or the diameter of the target area when it is a circle; or the major axis of the target area when it is an ellipse, or the maximum inner diameter of the target area with an irregular shape; and a second filling pattern, the filling effect of which includes: using a point within the target area as a filling vertex, performing angular filling of at least two fillers within the target area.
[0009] In one embodiment, when the projection object is the target area to be filled, determining the filling effect of the target area based on the presentation state of the adjustment bar within the adjustment frame and the currently applied target filling mode includes: when the target filling mode is the first filling mode, determining the width occupied by different fillers filling along the predetermined path within the target area based on the distance between the first endpoint and the second endpoint.
[0010] In one embodiment, when the projection object is the target area to be filled, determining the filling effect of the target area based on the presentation state of the adjustment bar within the adjustment box and the currently applied target filling mode includes: when the target filling mode is the first filling mode, adjusting the predetermined path according to the direction indicated by the line connecting the first endpoint and the second endpoint.
[0011] In one embodiment, when the projection object is the target area to be filled, adjusting the filling effect of the target area according to the presentation state of the adjustment bar in the adjustment box and the currently applied target filling mode further includes: when the target filling mode is the second filling mode, determining at least two angles of the filler according to the direction indicated by the line connecting the first endpoint and the second endpoint.
[0012] In one embodiment, when the projection object is the target area to be filled, adjusting the filling effect of the target area according to the presentation state of the adjustment bar within the adjustment box and the currently applied target filling mode further includes: when the target filling mode is the second filling mode, determining the position of the filling vertex according to the position of the first endpoint.
[0013] In one embodiment, adjusting the projection effect of the projection object according to the presentation state of the adjustment bar within the adjustment box and the projection object includes: when the projection object is the text to which a shadow is to be added, determining the width of the shadow added to the text according to the spacing between the first endpoint and the second endpoint; and / or determining the direction of the shadow added relative to the text according to the direction indicated by the line connecting the first endpoint and the second endpoint.
[0014] A second aspect of this disclosure provides a projection effect processing apparatus for graphic processing, comprising: a display module and a display control panel; wherein the control panel includes: an adjustment frame and an adjustment bar displayed within the adjustment frame; wherein the adjustment bar includes at least: a first endpoint and a second endpoint; a detection module for detecting adjustment operations applied to the first endpoint and / or the second endpoint; a first adjustment module for adjusting the position of the first endpoint and / or the second endpoint within the adjustment frame according to the adjustment operations; and a second adjustment module for determining the projection effect of the projected object according to the presentation state of the adjustment bar within the adjustment frame.
[0015] A third aspect of this disclosure provides an electronic device, including: a processor and a memory for storing executable instructions capable of running on the processor, wherein: when the processor runs the executable instructions, the executable instructions perform the method described in any of the above embodiments.
[0016] A fourth aspect of this disclosure provides a non-transitory computer-readable storage medium storing computer-executable instructions that, when executed by a processor, implement the method described in any of the above embodiments.
[0017] The technical solutions provided by the embodiments of this disclosure may include the following beneficial effects: This solution first displays a control panel, which includes an adjustment box and an adjustment bar displayed within the adjustment box. The adjustment bar includes at least a first endpoint and a second endpoint. Then, it detects adjustment operations applied to the first endpoint and / or the second endpoint. Based on these adjustments, it adjusts the position of the first endpoint and / or the second endpoint within the adjustment box. Finally, based on the presentation state of the adjustment bar within the adjustment box, it determines the projection effect of the projected object. By adjusting the first and second endpoints, the position and presentation state of the adjustment bar within the adjustment box are adjusted, and then, based on the presentation state of the adjustment bar in the control panel, the projection effect of the projected object is adjusted.
[0018] On one hand, this solution allows users to adjust the projection effect of the fill in the target area simply by adjusting the adjustment bar, without requiring professional adjustment skills. This meets the needs of users without professional skills and achieves satisfactory results. In contrast, some professional projection effect adjustments require specialized methods and direct application to the projection object to adjust the fill in the target area, making the operation more difficult and the resulting projection effect less likely to be satisfactory. This method reduces the difficulty of adjusting the projection effect by not directly applying it to the projection object, satisfying the needs of different users and offering simple and convenient operation. Furthermore, the projection effect displayed in the target area can be adjusted simultaneously through the control panel, eliminating the inconvenience of only seeing the adjusted projection effect after the adjustment is completed when directly adjusting the object.
[0019] On the other hand, the position and presentation state of the adjustment bar in the adjustment box can correspond to any position in the projected object. This allows for arbitrary adjustments to the projected object by adjusting the presentation state of the adjustment bar in the adjustment box, without being limited to a fixed adjustment area or position, thus improving the adjustability of the projection effect of the projected object.
[0020] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit this disclosure. Attached Figure Description
[0021] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.
[0022] Figure 1 This is a flowchart illustrating a projection effect processing method in image processing according to an exemplary embodiment; Figure 2 This is a schematic diagram illustrating a first filling pattern according to an exemplary embodiment; Figure 3 This is a schematic diagram illustrating a second filling mode according to an exemplary embodiment; Figure 4 This is a schematic diagram illustrating a variety of fillers filled in a first mode according to an exemplary embodiment; Figure 5 This is an example of a method of... Figure 4 The diagram shows the result after adjusting the fill effect. Figure 6 This is a schematic diagram illustrating another filling process using a first filling mode, according to an exemplary embodiment. Figure 7This is an example of a method of... Figure 6 The diagram shows the adjusted fill effect. Figure 8 This is another example of a method shown according to an exemplary embodiment. Figure 6 The diagram shows the adjusted fill effect. Figure 9 This is a schematic diagram illustrating another filling method using a second filling mode according to an exemplary embodiment; Figure 10 This is a schematic diagram illustrating a filling method when the projection object is text to be shadowed, according to an exemplary embodiment. Figure 11 This is a fill diagram illustrating another projection object, where the text to be shadowed is the text, according to an exemplary embodiment. Figure 12 This is a schematic diagram illustrating the filling of text itself using a first filling mode according to an exemplary embodiment; Figure 13 This is an illustration of another method of filling text itself using a first filling mode, according to an exemplary embodiment; Figure 14 This is an illustration of another method of filling text itself using a first filling mode, according to an exemplary embodiment; Figure 15 This is an illustration of another method of filling text itself using a first filling mode, according to an exemplary embodiment; Figure 16 This is a schematic diagram illustrating the structure of a projection effect processing device in graphic processing according to an exemplary embodiment; Figure 17 This is a block diagram illustrating a terminal device according to an exemplary embodiment. Detailed Implementation
[0023] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numerals in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Rather, they are merely examples of apparatuses and methods consistent with some aspects of the invention as detailed in the appended claims.
[0024] refer to Figure 1 This is a flowchart illustrating a projection method in image processing provided in this embodiment. The method includes the following steps: Step S100: Display control panel; wherein the control panel includes: adjustment frame and adjustment bar displayed in adjustment frame; wherein the adjustment bar includes at least: first endpoint and second endpoint.
[0025] Step S200: Detect adjustment operations applied to the first endpoint and / or the second endpoint.
[0026] Step S300: Adjust the position of the first endpoint and / or the second endpoint within the adjustment box according to the adjustment operation.
[0027] Step S400: Determine the projection effect of the projected object based on the presentation state of the adjustment bar within the adjustment box. For step S100, the technical solution in this embodiment is to adjust the projection object by adjusting the adjustment bar in the control panel. Before adjusting the projection object, the control panel is displayed first, and then the projection object is adjusted through the control panel.
[0028] refer to Figure 2 The control panel 1 is an operation panel for receiving fill and adjustment operations. After receiving a fill operation through the control panel 1, fill material is applied to the target area; the specific fill mode can be determined according to actual needs. The control panel 1 can also receive adjustment operations from the adjustment bar, including at least adjustments applied to the first endpoint and / or the second endpoint. After receiving an adjustment operation through the control panel 1, the presentation state of the adjustment bar within the adjustment frame is adjusted, such as its position, length, and shape, thereby adjusting the projection effect of the target area based on the adjustments to the adjustment bar.
[0029] In this embodiment, the control panel 1 is used to adjust the projection effect of the projected object. This control panel 1 is different from the control panel of the projected object; it can be displayed in the form of controls. The displayed control panel 1 may partially overlap with the projected object, meaning it may be located above the projected object, covering part of its area, or it may not overlap with the projected object.
[0030] Control panel 1 includes a sub-panel for determining the fill and operation controls for invoking this sub-panel. By operating the operation controls to invoke the sub-panel, the sub-panel can be called, allowing you to determine the fill material to be used, such as color or shape. This sub-panel allows you to fill the target area with the fill material, and then easily adjust the projection effects of the filled area. The projection object can include the target area to be filled and the text to which a shadow is to be added; the corresponding projection effects include fill effects and shadow addition effects.
[0031] refer to Figure 2The control panel 1 includes an adjustment frame and an adjustment bar 2 displayed within the adjustment frame. The adjustment frame defines the range of movement for the adjustment bar 2, and by adjusting the adjustment bar 2, its movement within the adjustment frame can be controlled. The adjustment bar 2 includes at least two endpoints, namely a first endpoint and a second endpoint. The first endpoint and the second endpoint are movable endpoints. By adjusting the first endpoint and / or the second endpoint, the adjustment bar 2 can be adjusted, thereby changing its appearance within the adjustment frame. This appearance includes its position and size within the adjustment frame.
[0032] In one embodiment, the adjustment bar may be a bar-shaped adjustment bar. Adjusting the length, width, or position of the adjustment bar within the adjustment frame thus adjusts its appearance within the adjustment frame.
[0033] The adjustment bar can also be a line-shaped adjustment bar with multiple endpoints. The two ends of the adjustment bar are adjustable endpoints connected by lines, and other adjustable points can be included between the two endpoints. The appearance of the adjustment bar within the adjustment box is adjusted by adjusting at least one endpoint and / or the adjustable points between the two endpoints.
[0034] In one embodiment, the adjustment bar further includes at least one adjustment node located between the first endpoint and the second endpoint. Depending on the adjustment operation applied to the at least one adjustment node, the presentation state of the adjustment bar in the adjustment box, such as its position and shape, can be adjusted.
[0035] It can include: adjusting an adjustment node between the first and second endpoints of the adjustment bar, and adjusting the distance between the adjustment node and the first and second endpoints in the direction of the line connecting the first and second endpoints according to the adjustment operation applied to the adjustment node, thereby adjusting the width occupied by the filler in the target area.
[0036] It may also include: adjusting the position of at least one adjustment node in a direction deviating from the line connecting the first and second endpoints, that is, adjusting the position of at least one adjustment node in a direction deviating from the line connecting the first and second endpoints, for example, adjusting the position of at least one adjustment node in a direction perpendicular to the line connecting the first and second endpoints. For example, when filling a target area, the shape of the adjusted adjustment bar changes from a straight line to a broken line, and the projection effect of the filling in the target area is adjusted according to the change in the shape of the adjustment bar.
[0037] After adjusting the shape of the adjustment bar, the fill in the target area is adjusted according to the shape of the adjustment bar. For example, when filling the target area, if the adjustment bar was originally a straight line and the fill material was applied along the straight line, after adjusting the adjustment bar to a polygonal shape, the fill effect is adjusted according to the shape of the adjustment bar, and the resulting projection effect is a fill effect along the polygonal line. That is, the fill material fills along the path formed by the endpoints and the adjustment nodes, or along the path formed by adjustment nodes.
[0038] For step S200, after displaying the control panel, the first endpoint and / or the second endpoint in the display panel can be adjusted.
[0039] An adjustment operation can be an adjustment operation that acts solely on the first endpoint, meaning it adjusts only the first endpoint. It can also be an adjustment operation that acts solely on the second endpoint, meaning it adjusts only the second endpoint. Alternatively, it can be an adjustment operation that acts on both the first and second endpoints, meaning it adjusts both the first and second endpoints separately.
[0040] Step S300: After detecting an adjustment operation applied to the first endpoint and / or the second endpoint, adjust the positions of the first endpoint and / or the second endpoint within the adjustment box according to the adjustment operation. The position of only the first endpoint within the adjustment box may be adjusted; the position of only the second endpoint within the adjustment box may be adjusted; or the positions of both the first and second endpoints within the adjustment box may be adjusted simultaneously.
[0041] Step S400: After adjusting the position of the first endpoint and / or the second endpoint within the adjustment box, the presentation state of the adjustment bar within the adjustment box is also adjusted, including the position and / or size of the adjustment bar within the adjustment box. After adjusting the first endpoint and / or the second endpoint, the presentation state of the adjustment bar within the adjustment box will change. After the presentation state of the adjustment bar within the adjustment box changes, the projection effect of the projected object is determined based on the presentation state of the adjustment bar within the adjustment box.
[0042] In this embodiment, projection can include filling the target area and adding shadows to the text. Of course, projection is not limited to these two cases and can include other cases. As long as the object corresponding to the control panel can be controlled through the control panel, it is within the protection scope of this embodiment. The presentation state of the adjustment bar within the adjustment box includes: the position, shape, and length of the adjustment bar within the adjustment box, etc., and the adjustment bar can be a linear adjustment bar.
[0043] When the adjustment bar is a bar-shaped adjustment bar, its appearance can also include the width of the adjustment bar. In this case, the width of the adjustment bar corresponds to the width occupied by the fill material, and the width occupied by the fill material can be adjusted by adjusting the width of the adjustment bar.
[0044] In one embodiment, there is a preset correspondence between the presentation state of the adjustment bar within the adjustment box and the projected object, including correspondence between positions and directions. For example, adjusting the position of the adjustment bar within the adjustment box can adjust the projection effect of the portion of the projected object that corresponds to the adjustment bar.
[0045] In this embodiment, the preset correspondence can be a correspondence provided during application programming. The projection effect within the target area can be adjusted accordingly based on this correspondence.
[0046] In another embodiment, the correspondence can also be determined by setting and editing operations based on the correspondence. Depending on actual needs, the correspondence determined by setting and editing operations can meet the usage requirements of users with specific needs. These users may have more specialized operations or special requirements for projection effects. In this way, a one-time editing operation can determine the correspondence, achieving personalized customization and facilitating subsequent adjustments to the projection effect using the corresponding correspondence.
[0047] By adjusting at least two endpoints within the control panel, the presentation state of the adjustment bar within the adjustment box is adjusted. Based on this presentation state, the projection effect of the projected object is then adjusted. This eliminates the need to directly apply adjustments to the projected object; instead, the projection effect is indirectly adjusted through the adjustment bar. Simultaneously adjusting the adjustment bar provides a view of the resulting projection effect, reducing the need for repeated adjustments when the result differs from the expected outcome, as is common with direct application to the projected object. This allows for better adjustment of the projection effects of multiple objects, improving the overall adjustment efficiency.
[0048] On one hand, this solution allows users to adjust the projection effect of the fill in the target area simply by adjusting the adjustment bar, without requiring professional adjustment skills. This meets the needs of users without professional operating skills and achieves satisfactory adjustment results. In contrast, some professional projection effect adjustment operations require specialized methods and direct application to the projection object to adjust the fill in the target area, making the operation more difficult and the adjusted projection effect less likely to meet expectations. This method reduces the difficulty of adjusting the projection effect by not directly applying it to the projection object, satisfying the needs of different users for adjusting the projection effect, and is simple and convenient to operate. Furthermore, the projection effect displayed in the target area can be adjusted simultaneously through the control panel while adjusting the adjustment bar.
[0049] On the other hand, the position and presentation state of the adjustment bar in the adjustment box can correspond to any position in the projected object. This allows for arbitrary adjustments to the projected object by adjusting the presentation state of the adjustment bar in the adjustment box, without being limited to a fixed adjustment area or position, thus improving the adjustability of the projection effect of the projected object.
[0050] Furthermore, in this embodiment of the solution, since the position of the adjustment bar within the adjustment box corresponds to the projection effect of the filler in the target area, the projection effect of the filler in the target area can be adjusted simultaneously while adjusting the adjustment bar. That is, when adjusting adjustable points, including at least the first and second endpoints, the projection effect can be adjusted concurrently. This facilitates adjusting the adjustment bar and the projection effect simultaneously, allowing adjustment to stop once the desired projection effect is achieved. Alternatively, if the projection effect is unsatisfactory, the adjustment bar can be continued until the desired projection effect is achieved. This improves the convenience of adjusting the projection effect. It reduces the cumbersome operation and poor adjustment experience caused by directly adjusting the projection object, where the adjusted projection effect can only be determined after the adjustment operation is received, and if the projection effect is poor, further adjustments are required.
[0051] In another embodiment, the projection objects include: a target area to be filled and text to which a shadow is to be added. The target area to be filled can be any target area, including a target area of any shape and a target area of any position; that is, the shape and position of the target area to be filled are not limited.
[0052] The target area to be filled can include any area that needs to be filled.
[0053] When the target area to be filled is text and the text itself is filled, the filled text has a filling effect. In this case, the target area to be filled is only related to the text itself and has nothing to do with other areas. The area covered by the text is used as the target area, and only the areas where the strokes of the text are located are filled. For example, if the text is "I love China", then the four characters "I love China" are filled. Refer to Figures 12 to 15 .
[0054] When the target area to be filled is an image, the image is filled and the filled image has a filling effect. When the target area to be filled is a predetermined area, the predetermined area is filled and the filled predetermined area has a filling effect. It is also possible to determine the target area to be filled according to actual needs. For example, a part of the image is determined as the target area to be filled, and then this part of the area in the image is filled, and this part of the area in the image has a filling effect. The target area to be filled is not limited in this embodiment, and as long as it is an area that needs to be filled, it is within the protection scope of this embodiment.
[0055] The text to which a shadow is to be added can be any text that needs to add a shadow, and this text can be the text that needs to add a shadow at any position. The text after adding the shadow has the effect of a shadow.
[0056] The projection effects and projection modes of different projection objects are different. The filling effects of the target areas to be filled and the addition effects of the texts to which shadows are to be added are different. The adjustment methods of the filling effects of the target areas to be filled and the addition effects of the texts to which shadows are to be added are also different.
[0057] In this embodiment, in step S400, according to the presentation state of the adjustment bar in the adjustment box, the filling effect of the filling object is adjusted, including: according to the presentation state of the adjustment bar in the adjustment box and the filling object, the filling effect of the filling object is adjusted.
[0058] Since the filling objects are different, the attributes and filling requirements of different filling objects are different. Therefore, different filling methods are set for different filling objects, thereby improving the filling effect. According to the presentation state of the adjustment bar in the adjustment box and the filling object, the filling effect of the filling object is adjusted. That is, after the filling object is determined, the filling effect of the filling object can be adjusted by the corresponding adjustment method according to the presentation state of the adjustment bar in the adjustment box.
[0059] In another embodiment, adjusting the fill effect of the fill object based on the presentation state of the adjustment bar within the adjustment box and the fill object includes: when the fill object is a target area to be filled, determining the fill effect of the target area based on the presentation state of the adjustment bar within the adjustment box and the currently applied target fill mode, wherein different target fill modes correspond to different fill effects.
[0060] When filling a target area, in addition to considering the appearance of the adjustment bar within the adjustment box, the fill effect of the target area also needs to be determined based on the current target fill mode. The current application can include multiple different target fill modes, each corresponding to a different fill effect. When filling the same target area, different target fill modes can produce different fill effects. After determining the target fill mode, the fill effect of the object under the current target fill mode is adjusted based on the appearance of the adjustment bar within the adjustment box.
[0061] Furthermore, the target fill mode of the current application may include: a first fill mode and a second fill mode.
[0062] The first fill mode includes: a fill mode in which at least two fill elements are sequentially filled within a target area along a predetermined path. The at least two fill elements are filled side-by-side along the predetermined path, and each fill element has a certain fill width, i.e., the width occupied by the fill element within the target area, in order to display and distinguish the fill elements. The fill width can be set according to actual needs.
[0063] The fill width of the filler can be adjusted by adjusting the adjustment bar, that is, by adjusting the position of the first endpoint and / or the second endpoint through the adjustment operation applied to the first endpoint and / or the second endpoint, thereby adjusting the fill width of the filler.
[0064] The predetermined path is the direction along which different fillers are stacked together during filling.
[0065] In one embodiment, the predetermined path may be a straight path; in another embodiment, the predetermined path may be a curved path. A typical straight path may include line segments or rays located within a filled area. A typical curved path may include wavy lines or arcs.
[0066] The predetermined path can be statically set or dynamically determined.
[0067] The statically set predetermined path can include: the diagonal of the target area when it is a rectangle; or the diameter of the target area when it is a circle; or the major axis of the target area when it is an ellipse; or the maximum inner diameter of the irregularly shaped target area. That is, the target area can be a rectangular area, a circular area, an elliptical area, or an irregularly shaped area. The predetermined path within a rectangular area can be the diagonal of the rectangle; the predetermined path within a circular area can be the diameter of the circle; the predetermined path within an elliptical area can be the major axis of the ellipse; and the predetermined path within an irregularly shaped area can be the maximum inner diameter of the irregularly shaped area.
[0068] The dynamically determined path can be: based on the path determined by the user operation received from the human-computer interaction interface, for example, detecting the drawing operation applied to the target area or the adjustment box, and determining the path with the same shape as the path traversed by the drawing operation as the predetermined path based on the path of the drawing operation.
[0069] The filling effect after filling using the first fill mode, i.e., the filling effect corresponding to the first fill mode, includes at least two fill materials sequentially filling the target area according to a predetermined path within the target area. In this embodiment, the filling effect corresponding to the first fill mode includes at least two fill materials obtained by filling along the diagonal of a rectangular area, at least two fill materials obtained by filling along the diameter of a circular area, at least two fill materials obtained by filling along the major axis of an elliptical area, and at least two fill materials obtained by filling along the maximum inner diameter of an irregularly shaped area. It may also include at least two fill materials obtained by filling along other paths, such as at least two fill materials obtained by filling along the minor axis of an elliptical area.
[0070] refer to Figure 2 This is a schematic diagram of a first filling mode.
[0071] Figure 2 The target area shown is a rectangular area, and the predetermined path is the diagonal of this rectangle. The predetermined path is represented by the line connecting the first and second endpoints within the adjustment box. Figure 2The white adjustment box shown in the upper right corner includes two endpoints: the black endpoint in the upper left corner is the first endpoint, and the white endpoint in the lower right corner is the second endpoint. The direction from the first endpoint to the second endpoint is a predetermined path. In this embodiment, color is used as the fill material. Using a first fill mode, three different colors are filled along the predetermined path. The three colors have differences in grayscale, and adjacent colors exhibit gradual changes and transitions. This mode is also known as a color gradient mode. Using a second fill mode, the three determined colors are filled along the direction from the first endpoint to the second endpoint, with adjacent colors transitioning through a gradient. Of course, in other embodiments, there may be no transition between adjacent colors. Figure 2 Fill the top left corner with the first color, the middle with the second color, and the bottom right corner with the third color.
[0072] The second fill mode includes a mode that uses a point within the target area as the fill vertex and performs angular fill with at least two fill materials within the target area. The fill effect achieved by filling the target area using the second fill mode, i.e., the fill effect corresponding to the second fill mode, includes the fill result of using a point within the target area as the fill vertex and performing angular fill with at least two fill materials within the target area.
[0073] refer to Figure 3 This is a schematic diagram of a second filling mode. Figure 3 The point where the different grayscale colors in the central region of the image intersect is the fill vertex, i.e. Figure 3 The position is indicated by the central pentagram. Different colors are used to fill the angles based on the filled vertices. Figure 3 The different gray areas shown are the different colors that are filled.
[0074] In another embodiment, the fill material includes colors and graphics, etc. The at least two different fill materials can be at least two different colors, or at least two different graphics, or at least one color and at least one graphic, etc.
[0075] Specifically, when the fill is a graphic, it can include grids, diagonal lines, dots, snowflakes, raindrops, irregular shapes, or custom shapes, etc.
[0076] In another embodiment, when the object to be filled is the target area to be filled, the filling effect of the target area is determined according to the presentation state of the adjustment bar in the adjustment box and the target filling mode currently applied, including: when the target filling mode is the first filling mode, determining the width occupied by different fillers filling along a predetermined path in the target area according to the distance between the first endpoint and the second endpoint.
[0077] In this embodiment, adjusting the width occupied by different fillers within the target area is one way to adjust the filling effect of the target area. Since the first filling mode includes a filling mode that sequentially fills at least two fillers within the target area according to a predetermined path within the target area, and the at least two fillers are filled side by side along the predetermined path, with each filler occupying a certain width, changing the width occupied by the filler can adjust the filling effect of the filler in the target area.
[0078] The width occupied by the filler material along the predetermined path within the target area is adjusted by adjusting the distance between the first and second endpoints. The position of the first endpoint within the adjustment box can be adjusted, or the position of the second endpoint can be adjusted, or both the positions of the first and second endpoints can be adjusted simultaneously. By adjusting the positions of the first and / or second endpoints, the distance between them can be adjusted. In this embodiment, when adjusting the positions of the first and / or second endpoints, the direction indicated by the line connecting the first and second endpoints can be maintained, and the distance between the two endpoints can be changed individually.
[0079] After adjusting the spacing between the first and second endpoints, the fill effect of the corresponding portions of the fill object is adjusted based on the adjusted spacing. For example, if the spacing between the first and second endpoints increases, the width occupied by the corresponding fill element in the fill object increases. If the spacing between the first and second endpoints decreases, the width occupied by the corresponding fill element in the fill object decreases. After the width occupied by the fill element in the fill object changes, the fill effect of the fill element in the target area changes accordingly, thus adjusting the fill effect of the target area.
[0080] refer to Figure 4 This is a schematic diagram of multiple fillers filled using a first mode; Figure 5 To Figure 4 The diagram shows the result after adjusting the fill effect.
[0081] Figure 4 The left side of the target area is the first filler, the middle area with a brighter gray level is the second filler, and the right side area with a darker gray level is the third filler. The gray level of the first filler is between that of the second and third fillers. Figure 4 Within the white adjustment box in the upper right corner, the distance between the first black endpoint and the second white endpoint is proportional to the width occupied by the second fill element. The distance from the first endpoint to the left border of the adjustment box is proportional to the width occupied by the first fill element in the target area, and the distance from the second endpoint to the right border of the adjustment box is proportional to the width occupied by the third fill element in the target area.
[0082] By adjusting the positions of the first and second endpoints within the adjustment box, the distance between the first and second endpoints, as well as the distance from the first and second endpoints to the border of the adjustment box, can be adjusted. This, in turn, allows adjustment of the width of the first, second, and third fill elements within the target area. Figure 5 In order to be in Figure 4 The fill effect is adjusted based on the previous setup. The first endpoint is moved to the left border of the adjustment box, and the second endpoint is moved to the right border of the adjustment box, increasing the distance between the two endpoints. Figure 4 and Figure 5 The comparison of the displayed fill effects clearly shows that the second filler occupies a larger width in the target area, while the first and third fillers occupy a smaller width.
[0083] refer to Figure 6 This is a schematic diagram of another method of filling using the first filling mode; Figure 7 As a kind of Figure 6 The diagram shows the adjusted fill effect. Figure 8 For another kind of pair Figure 6 The diagram shows the adjusted fill effect. This embodiment is a schematic diagram of at least two fill materials obtained by filling according to the diameter of the circular area when the fill mode is the first fill mode.
[0084] Figure 6 The image is filled with three different grayscale values. The grayscale value of the center area is between the grayscale value of the outermost area and the grayscale value of the middle annular area. Taking the target area as the center area, the three different colors are filled according to the diameter of the circular area. The center is filled with the first color, the outermost area adjacent to the center is filled with the second color, and the outermost area of the second color is filled with the third color.
[0085] Figure 6 , Figure 7 and Figure 8 The white box in the upper right corner is an adjustment box. The black endpoint within the adjustment box is the first endpoint, and the white endpoint is the second endpoint. The first endpoint points to the second endpoint. The distance between the first and second endpoints determines the width occupied by the three fill elements along the diameter of the circle within the target area. The position of the first endpoint within the adjustment box corresponds to the center of the circle, i.e., the position of the first color. The position of the second endpoint within the adjustment box corresponds to the position of the third color in the target area. The distance between the first and second endpoints corresponds to the width occupied by the three colors in the target area.
[0086] Combination Figure 6 and Figure 7Based on the adjustment operation applied to the second endpoint, the position of the second endpoint is adjusted, thereby adjusting the distance between the second endpoint and the first endpoint. Figure 7 The distance between the first and second endpoints in the middle is greater than Figure 6 The distance between the first and second endpoints. (By...) Figure 6 and Figure 7 As can be seen from the fill effect displayed in the target area, Figure 7 The width occupied by the three different fill colors is greater than... Figure 6 The widths occupied by the three fill colors can be referenced to the widths occupied by the first and second fill colors at the center of the circle. Figure 7 The width occupied by the first color at the center of the circle is significantly greater than... Figure 6 The width occupied by the first color at the center of the circle. Figure 7 The width occupied by the second color is significantly larger than Figure 6 The width occupied by the second color in the middle. Additionally, Figure 8 Fill effects and Figure 6 Comparison or with Figure 7 The difference is more obvious.
[0087] In another embodiment, combined Figure 6 and Figure 8 Based on the adjustment operations applied to the first and second endpoints, the positions of the first and second endpoints are adjusted. Figure 6 Based on this, adjust the position of the first endpoint. Figure 8 The position of the first endpoint is the adjusted position. After the position of the first endpoint changes, the position of the first fill color in the target area also changes. After the position of the first fill color changes, the first fill color changes with the change of the first color. The third fill color is on the outermost layer.
[0088] After the position of the first endpoint changes, the positions of the first color and the second color also change, thus achieving the adjustment of the fill effect.
[0089] In another embodiment, when the object to be filled is the target area to be filled, the filling effect of the target area is determined according to the presentation state of the adjustment bar in the adjustment box and the target filling mode currently applied, including: when the target filling mode is the first filling mode, adjusting the predetermined path according to the direction indicated by the line connecting the first endpoint and the second endpoint.
[0090] In this embodiment, adjusting the predetermined path is another way to adjust the filling effect of the target area. After at least two fillers are filled according to the predetermined path, adjusting the predetermined path can adjust the filling effect of the at least two fillers filled according to the predetermined path.
[0091] Based on the adjustment operation applied to the first endpoint and / or the second endpoint, the positions of the first endpoint and / or the second endpoint are adjusted, thereby adjusting the direction indicated by the line connecting the first endpoint and the second endpoint. The direction indicated by the line connecting the first endpoint and the second endpoint includes: the first endpoint pointing towards the second endpoint, or the second endpoint pointing towards the first endpoint. A predetermined path in the target area can be aligned with the direction indicated by the line connecting the first endpoint and the second endpoint. Filling is then performed according to the predetermined path, and the predetermined path can be adjusted by adjusting the direction indicated by the line connecting the first endpoint and the second endpoint. Since at least two fill materials are filled according to the predetermined path, the filling effect of at least two fill materials can be adjusted after adjusting the predetermined path.
[0092] The direction from the first endpoint to the second endpoint can be defined as the direction consistent with the predetermined path; the direction from the second endpoint to the first endpoint can also be defined as the direction consistent with the predetermined path; of course, the direction that is at a certain angle to the direction indicated by the line connecting the first and second endpoints can also be defined as the direction consistent with the predetermined path.
[0093] Adjusting the predetermined path according to the direction indicated by the line connecting the first and second endpoints includes: The predetermined path is adjusted in the same direction as the rotation direction indicated by the first endpoint to the second endpoint. or, According to the rotation direction indicated by the first endpoint to the second endpoint, adjust the predetermined path in the opposite direction to the rotation direction indicated by the first endpoint to the second endpoint.
[0094] In this embodiment, the method of adjusting the direction of the predetermined path by adjusting the direction indicated by the line connecting the first endpoint and the second endpoint, thereby adjusting the filling effect of the filler filled according to the predetermined path, is within the protection scope of this embodiment.
[0095] For example, if the direction from the first endpoint to the second endpoint aligns with a predetermined path, adjusting this direction by rotating the first endpoint 90 degrees counter-clockwise will adjust the predetermined path accordingly. After rotating the predetermined path 90 degrees counter-clockwise, the filling positions of at least two types of fillers, which are to be filled according to the predetermined path, will be adjusted based on the adjusted path. The filling path of the adjusted fillers will then align with the direction from the first endpoint to the second endpoint after the 90-degree counter-clockwise rotation.
[0096] For example, if the direction from the first endpoint to the second endpoint aligns with the predetermined path, adjusting this direction by rotating it 30 degrees clockwise will rotate the predetermined path 30 degrees counterclockwise. This 30-degree counterclockwise rotation of the predetermined path will then adjust the filling effect of at least two fillers that are filling along the predetermined path, effectively changing the position of the fillers within the filled object.
[0097] Combination Figure 2 , Figure 4 and Figure 5 , Figure 2 The filling material in the target area is filled according to a predetermined path, that is, in the direction from the first endpoint to the second endpoint. Figure 2 The direction from the first endpoint to the second endpoint within the adjustment box is also the diagonal of the rectangle. Figure 4 and Figure 5 The filling effect in the text is the filling effect after adjusting the first and second endpoints. Figure 4 The direction from the first endpoint to the second endpoint in the diagram is relative to... Figure 2 The direction from the first endpoint to the second endpoint has changed. Figure 4 The filling effect of the filler in the target area also changed accordingly. Figure 5 The same applies.
[0098] refer to Figure 4 and Figure 5 The fill effect in Figure 5 In order to be in Figure 4 The result is the result after adjusting the first and second endpoints based on the above. Figure 5 The direction from the first endpoint to the second endpoint in the diagram is relative to... Figure 4 The direction from the first endpoint to the second endpoint has changed. Figure 5 The filling effect of the filler in the target area is relative to Figure 4 The filling effect of the filler in the target area changes as the direction from the first endpoint to the second endpoint changes, i.e., it rotates counterclockwise. (Comparison) Figure 4 and Figure 5 In the middle of the target area, the direction indicated by the second filler with a brighter grayscale is clearly different, and it has rotated counterclockwise.
[0099] In another embodiment, when the object to be filled is the target area to be filled, the filling effect of the target area is adjusted according to the presentation state of the adjustment bar in the adjustment box and the target filling mode currently applied, and the method further includes: when the target filling mode is the second filling mode, determining the angle of at least two types of fills according to the direction indicated by the line connecting the first endpoint and the second endpoint.
[0100] Since the second fill mode includes filling the target area with at least two fill materials at different angles, using a point within the target area as the fill vertex, this embodiment adjusts the fill angles of at least two fill materials within the target area as another way to adjust the fill effect of the target area. By adjusting the fill angles of at least two fill materials, and considering the differences in color or shape between different fill materials, the fill effect of the target area can be adjusted after adjusting the fill angles of the different fill materials.
[0101] The fill vertex can be a point within a target area determined according to actual business needs. In this embodiment, the position of the fill vertex can be fixed, and the first endpoint in the adjustment bar corresponds to the position of the fill vertex within the target area. By adjusting the position of the second endpoint in the adjustment box, the direction indicated by the connection between the first and second endpoints is adjusted. The direction indicated by the connection between the first and second endpoints corresponds to a preset relationship with the fill angles of various fillers within the target area. Then, the angles of various fillers are adjusted according to the direction indicated by the connection between the first and second endpoints.
[0102] For example, after the various fillers filled according to the second fill mode are filled in the target area, taking the first endpoint corresponding to the fill vertex as an example, the angle between the second endpoint and the first endpoint within the adjustment box is adjusted, that is, the direction indicated by the line connecting the first endpoint and the second endpoint is adjusted. In this embodiment, the direction of the first endpoint pointing to the second endpoint is specifically adjusted.
[0103] For example, if the direction from the first endpoint to the second endpoint is rotated 60 degrees counterclockwise, the filling angles of various fillers within the target area are adjusted accordingly, with each filler's angle rotated 60 degrees counterclockwise. The target area after filling according to the second filling mode includes three different fillers. Taking the counterclockwise direction as an example, the angles of the first filler are 0°–120°, the second filler's angle is 121°–240°, and the third filler's angle is 241°–360°. After adjusting the position of the second endpoint, rotating the direction from the first endpoint to the second endpoint counterclockwise by 60 degrees, the angles of the first filler are adjusted to 60°–180°, the second filler's angle to 181°–300°, and the third filler's angle to 301°–60°.
[0104] Because of the differences in color or shape among the three fills, the adjusted fill effect changes, thus achieving the adjustment of the fill effect.
[0105] Of course, based on the correspondence between the adjustment of the direction indicated by the line connecting the first endpoint and the second endpoint and the adjustment of the angle of the filling material, it is also possible to adjust the angle of the filling material clockwise when the direction from the first endpoint to the second endpoint is adjusted counterclockwise, that is, to adjust in the opposite direction.
[0106] refer to Figure 9 This is a schematic diagram illustrating another method of filling using a second fill mode. (Combined with...) Figure 3 and Figure 9 , Figure 9 In order to be in Figure 3 Based on this, Figure 3 The positions of the black first endpoint and the white second endpoint within the white adjustment box in the upper right corner have been adjusted. After adjusting the positions of the first and second endpoints, the direction in which the first endpoint points to the second endpoint has changed. Figure 9 The direction in which the first black endpoint within the white adjustment box points to the second white endpoint is relative to... Figure 3 The direction from the first endpoint to the second endpoint has changed. By comparison... Figure 3 and Figure 9 As can be seen from the filling effect of the target area, the angle occupied by the filling in the corresponding target area has also changed.
[0107] In another embodiment, when the object to be filled is the target area to be filled, the filling effect of the target area is adjusted according to the presentation state of the adjustment bar in the adjustment box and the target filling mode currently applied. The method further includes: when the target filling mode is the second filling mode, determining the position of the filling vertex according to the position of the first endpoint.
[0108] This embodiment adjusts the position of the fill vertex as another way to adjust the fill effect of the target area. The position of the first endpoint in the adjustment box corresponds to the position of the fill vertex within the target area. By adjusting the position of the first endpoint in the adjustment box, the position of the fill vertex within the target area is adjusted. After the position of the fill vertex changes, the fill effect of various fills in the target area will also change. Therefore, based on the position of the first endpoint, the position of the fill vertex can be determined, thereby achieving the adjustment of the fill effect of the target area.
[0109] By adjusting the position of the first endpoint in the adjustment box, the position of the fill vertex can be adjusted. While adjusting the position of the first endpoint in the adjustment box, the adjustment status of the fill effect of the target area can be displayed, making it easier to determine the adjustment result of the fill effect and improving the convenience of adjusting the fill effect of the target area.
[0110] In another embodiment, adjusting the projection effect of the projection object based on the presentation state of the adjustment bar within the adjustment box and the projection object includes: When the projection object is text to be shadowed, the width of the shadow to be added to the text is determined based on the distance between the first endpoint and the second endpoint; And / or, Determine the direction to add shadows and text based on the direction indicated by the line connecting the first and second endpoints.
[0111] In this embodiment, the text to which a shadow is to be added is used as the projection object, and the text to which the shadow is to be added is filled with shadow. The position of the first endpoint in the adjustment box corresponds to the position of the text. In this embodiment, the position of the text can be fixed, so the position of the first endpoint in the adjustment box is also fixed. By adjusting the position of the second endpoint, the position of the text to be shadowed is adjusted.
[0112] In one embodiment, when the added shadow on the text is not displayed (i.e., the text is covered by the added shadow and the text and the added shadow overlap), the added shadow is not displayed, the second endpoint overlaps with the first endpoint, and the second endpoint covers the first endpoint. The added shadow is adjusted by adjusting the position of the second endpoint.
[0113] By adjusting the position of the second endpoint, the spacing between the first and second endpoints is adjusted. After the spacing between the first and second endpoints changes, the width of the added shadow is adjusted according to the adjusted spacing. The larger the spacing between the first and second endpoints, the wider the added shadow; the smaller the spacing, the smaller the added shadow.
[0114] refer to Figure 10 This is a diagram illustrating the filling method when the projection object is text to be shading. Figure 11 A diagram illustrating the filling when the other projection object is text to be shadowed. Figure 10 and Figure 11 The black text "My Motherland" in the center is the text to be shaded, while the white text "My Motherland" is the text to be shaded. The white circular box on the right is an adjustment box, with the center of the circle being the first endpoint. The white endpoints marked with numbers inside the adjustment box are the second endpoints. The numbers represent the electrical distance between the first and second endpoints, and the units can be set according to actual needs. Figure 10 The distance between the second endpoint and the first endpoint is 50. Figure 11 The position of the second endpoint is adjusted, and the distance between the second endpoint and the first endpoint is 25. The distance between the second endpoint and the first endpoint is reduced, and the distance between the shadow and the text in the target area is also reduced.
[0115] The direction of the added shadow and text can also be determined by adjusting the direction indicated by the line connecting the first and second endpoints. In this embodiment, the direction indicated by the line connecting the first and second endpoints includes: the direction from the first endpoint to the second endpoint. By adjusting the position of the second endpoint, the direction from the first endpoint to the second endpoint is adjusted. Based on the change in the direction from the first endpoint to the second endpoint, the direction between the added shadow and the text is adjusted, and the direction indicated by the line connecting the first and second endpoints can be consistent with the direction between the added shadow and the text. That is, the adjusted direction from the first endpoint to the second endpoint is the direction formed by the text and the added shadow.
[0116] By adjusting the positional relationship between the first and second endpoints, and the positional relationship between the text and the added shadow, the adjustment of the shadow's projection effect in the target area can be displayed while adjusting the second position. This makes it easier to determine the result of the adjustment and improves the convenience of adjusting the projection effect.
[0117] Figure 10 The direction from the first endpoint to the second endpoint is upward in the vertical direction. By adjusting the position of the second endpoint, the direction from the first endpoint to the second endpoint can be adjusted, such as... Figure 11 As shown, the direction from the first endpoint to the second endpoint is the lower left. The corresponding shadow added to the target area also changes relative to the text, as shown in the comparison. Figure 10 and Figure 11 The direction of the Chinese characters and the added shadow shows that the direction of the characters and the added shadow changes as the first endpoint points to the second endpoint.
[0118] In another embodiment, the control panel also includes: The fill mode selection control is used to determine the fill mode for the fill effect in the target area.
[0119] In this embodiment, the fill mode selection control is also used to: display the fill effect of the fill mode, that is, the selection control includes a preview image of the fill effect, and the preview image of the fill effect is displayed in the corresponding fill mode selection control. Different fill modes correspond to different selection controls, and the selection controls display the corresponding fill effect preview images. (See attached figure) Figure 2-15 In the middle, under the direction settings, there are gradient modes, including selection controls for three different fill modes.
[0120] By displaying a preview of the fill effect in the fill mode selection control, users can easily see the fill effect of a fill mode before selecting it. This facilitates the selection process and reduces the likelihood of users choosing a fill mode without knowing its effect, resulting in a poor fill effect and requiring them to reselect the fill mode, which is cumbersome and leads to a poor user experience. This ultimately improves the user experience.
[0121] In another embodiment, reference Figure 12 This is a schematic diagram illustrating the filling of the text itself using the first fill mode; see reference. Figure 13 This is an illustration of another method of filling the text itself using the first fill pattern; see reference. Figure 14 This is an illustration of another method of filling the text itself using the first fill pattern; see reference. Figure 15 This is an illustration of another method of filling the text itself using the first fill mode.
[0122] Figure 12 , Figure 13 and Figure 15 To adjust the fill effect in the first fill mode, the text fill effect is adjusted by changing the direction from the first endpoint to the second endpoint, the distance between the first and second endpoints, and the distance between the first and second endpoints and the border of the white adjustment box. Specifically, the process of adjusting the positions of the first and second endpoints to adjust the text fill effect is described below. Figure 2 , Figure 4 and Figure 5 The process for adjusting the fill effect in the target area is the same.
[0123] Figure 14 This is a schematic diagram of filling using the second fill mode, illustrating the filling process and the adjustment process for the fill effect. Figure 6 The adjustment process is the same.
[0124] In one embodiment, it also includes: Record the adjustment operations applied to the adjustment bar and confirm the adjustment record; Based on the adjustment record, cancel the adjustment to the adjustment item; The undo operation on the adjustment bar cancels the adjustment of the fill's projection effect on the target area. The undo operation on the fill's projection effect on the target area corresponds to the undo operation on the adjustment bar.
[0125] When undoing an adjustment to the adjustment bar, adjustments to the projection effect in the target area are simultaneously undone. This allows you to restore the projection effect to its original state after adjusting it to a satisfactory level, provided that the effect was corrected correctly and then reverted due to improper operation. Furthermore, undoing both the adjustment bar and the projection effect allows you to further adjust the projection effect by adjusting the adjustment bar again.
[0126] This method reduces the occurrence of poor adjustment results caused by restoring the projection effect to the state it was when the adjustment was completed or reached a satisfactory level through operations on the adjustment bar, thus reducing the difficulty of adjustment.
[0127] In one embodiment, it is also possible to: Record the adjustment operations performed on the adjustment bar in chronological order; Undo adjustments made to the adjustment bar based on the different time sequences of the adjustments; Undo the adjustment of the adjustment bar by canceling the projection effect of the filler in the target area.
[0128] In one embodiment, a projection device for image and text processing is also provided, with reference to... Figure 16 This is a schematic diagram of the structure of the device, which includes: Display module 1 is used to display a control panel; wherein the control panel includes: an adjustment frame and an adjustment bar displayed within the adjustment frame; wherein the adjustment bar includes at least: a first endpoint and a second endpoint.
[0129] The detection module 2 is used to detect adjustment operations applied to the first endpoint and / or the second endpoint.
[0130] The first adjustment module 3 is used to adjust the position of the first endpoint and / or the second endpoint within the adjustment box according to the adjustment operation.
[0131] The second adjustment module 4 is used to determine the projection effect of the projected object based on the presentation state of the adjustment bar within the adjustment box.
[0132] In one embodiment, the projection object includes: the target area to be filled and the text to which the shadow is to be added; The second adjustment module 4 is specifically used to adjust the projection effect of the projection object based on the presentation state of the adjustment bar within the adjustment box and the projection object.
[0133] In one embodiment, the second adjustment module 4 is further configured to: when the projection object is a target area to be filled, determine the filling effect of the target area according to the presentation state of the adjustment bar in the adjustment box and the target filling mode currently applied, wherein different target filling modes correspond to different filling effects.
[0134] In one embodiment, the target fill pattern includes: The first fill mode, the fill effect corresponding to the first fill mode includes: filling at least two fillers sequentially in the target area according to a predetermined path in the target area; wherein, the predetermined path includes: the diagonal when the target area is a rectangle, or the diameter when the target area is a circle; or the major axis when the target area is an ellipse, or the maximum inner diameter of the target area with an irregular shape; The second fill mode includes the following fill effects: using a point in the target area as the fill vertex, and performing angular fill with at least two fill materials in the target area.
[0135] In one embodiment, the second adjustment module 4 is further configured to: when the target filling mode is the first filling mode, determine the width occupied by different fillers filling along the predetermined path in the target area according to the distance between the first endpoint and the second endpoint.
[0136] In one embodiment, the second adjustment module 4 is further configured to: when the target filling mode is the first filling mode, adjust the predetermined path according to the direction indicated by the line connecting the first endpoint and the second endpoint.
[0137] In one embodiment, the second adjustment module 4 is further configured to: when the target filling mode is the second filling mode, determine the angle of at least two types of fillers according to the direction indicated by the line connecting the first endpoint and the second endpoint.
[0138] In one embodiment, the second adjustment module 4 is further configured to: determine the position of the filling vertex based on the position of the first endpoint when the target filling mode is the second filling mode.
[0139] In one embodiment, the second adjustment module 4 is further configured to: when the projection object is text to be shadowed, determine the width of the shadow to be added to the text based on the distance between the first endpoint and the second endpoint; And / or, Determine the direction to add shadows and text based on the direction indicated by the line connecting the first and second endpoints.
[0140] In one embodiment, an electronic device is also provided, comprising: a processor and a memory for storing executable instructions capable of running on the processor, wherein: when the processor is used to run the executable instructions, the executable instructions perform the methods of any of the above embodiments.
[0141] In one embodiment, a non-transitory computer-readable storage medium is also provided, wherein computer-executable instructions are stored therein, which, when executed by a processor, implement the methods in any of the above embodiments.
[0142] It should be noted that the terms "first" and "second" in the embodiments of this disclosure are for ease of description and distinction only, and have no other specific meaning.
[0143] Figure 17 This is a block diagram illustrating a terminal device according to an exemplary embodiment. For example, the terminal device may be a mobile phone, computer, digital broadcasting terminal, messaging device, game console, tablet device, medical device, fitness equipment, personal digital assistant, etc.
[0144] Reference Figure 17 The terminal device may include one or more of the following components: processing component 802, memory 804, power component 806, multimedia component 808, audio component 810, input / output (I / O) interface 812, sensor component 814, and communication component 816.
[0145] Processing component 802 typically controls the overall operation of the terminal device, such as operations associated with display, telephone calls, data communication, camera operation, and recording. Processing component 802 may include one or more processors 820 to execute instructions to complete all or part of the steps of the methods described above. Furthermore, processing component 802 may include one or more modules to facilitate interaction between processing component 802 and other components. For example, processing component 802 may include a multimedia module to facilitate interaction between multimedia component 808 and processing component 802.
[0146] Memory 804 is configured to store various types of data to support operation on the terminal device. Examples of this data include instructions for any application or method operating on the terminal device, contact data, phonebook data, messages, pictures, videos, etc. Memory 804 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk.
[0147] Power component 806 provides power to various components of the terminal device. Power component 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the terminal device.
[0148] Multimedia component 808 includes a screen that provides an output interface between a terminal device and a user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touchscreen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensors may sense not only the boundaries of touch or swipe actions but also the duration and pressure associated with the touch or swipe operation. In some embodiments, multimedia component 808 includes a front-facing camera and / or a rear-facing camera. When the terminal device is in an operating mode, such as a shooting mode or a video mode, the front-facing camera and / or the rear-facing camera may receive external multimedia data. Each front-facing camera and rear-facing camera may be a fixed optical lens system or have focal length and optical zoom capabilities.
[0149] Audio component 810 is configured to output and / or input audio signals. For example, audio component 810 includes a microphone (MIC) configured to receive external audio signals when the terminal device is in an operating mode, such as call mode, recording mode, and voice recognition mode. The received audio signals may be further stored in memory 804 or transmitted via communication component 816. In some embodiments, audio component 810 also includes a speaker for outputting audio signals.
[0150] I / O interface 812 provides an interface between processing component 802 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to, home buttons, volume buttons, power buttons, and lock buttons.
[0151] Sensor assembly 814 includes one or more sensors for providing status assessments of various aspects of the terminal device. For example, sensor assembly 814 can detect the on / off state of the terminal device, the relative positioning of components such as the display and keypad of the terminal device, changes in the position of the terminal device or a component of the terminal device, the presence or absence of user contact with the terminal device, the orientation or acceleration / deceleration of the terminal device, and temperature changes of the terminal device. Sensor assembly 814 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. Sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, sensor assembly 814 may also include an accelerometer, a gyroscope, a magnetometer, a pressure sensor, or a temperature sensor.
[0152] Communication component 816 is configured to facilitate wired or wireless communication between the terminal device and other devices. The terminal device can access wireless networks based on communication standards, such as WiFi, 2G, or 3G, or combinations thereof. In one exemplary embodiment, communication component 816 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, communication component 816 also includes a near-field communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
[0153] In an exemplary embodiment, the terminal device may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field-programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the methods described above.
[0154] Other embodiments of the invention will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention that follow the general principles of the invention and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of the invention are indicated by the following claims.
[0155] It should be understood that the present invention is not limited to the precise structure described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of the invention is limited only by the appended claims.
Claims
1. A projection method in image and text processing, characterized in that, include: Display control panel; wherein the control panel includes: an adjustment box and an adjustment bar displayed within the adjustment box; wherein the adjustment bar includes at least: a first endpoint and a second endpoint; the control panel is used to adjust the projection effect of the projected object; the control panel is different from the control panel of the projected object; the projected object includes: a target area to be filled and text to be shadowed; detect adjustment operations applied to the first endpoint and / or the second endpoint; According to the adjustment operation, adjust the position of the first endpoint and / or the second endpoint within the adjustment box; Based on the presentation state of the adjustment bar within the adjustment box and the projection object, the projection effect of the projection object is adjusted and displayed; wherein, there is a preset correspondence between the presentation state of the adjustment bar within the adjustment box and the projection object, the preset correspondence including a correspondence between positions and a correspondence between directions.
2. The method according to claim 1, characterized in that, The step of adjusting and displaying the projection effect of the projection object based on the presentation state of the adjustment bar within the adjustment box and the projection object includes: When the projection object is the target area to be filled, the filling effect of the target area is determined according to the presentation state of the adjustment bar in the adjustment box and the currently applied target filling mode, wherein different target filling modes correspond to different filling effects.
3. The method according to claim 2, characterized in that, The target filling pattern includes: The first filling mode, the filling effect corresponding to the first filling mode includes: filling at least two types of fillers sequentially within the target area according to a predetermined path within the target area; wherein, the predetermined path includes: the diagonal of the target area when it is a rectangle, or the diameter of the target area when it is a circle; or the major axis of the target area when it is an ellipse, or the maximum inner diameter of the target area with an irregular shape; The second fill mode, the fill effect corresponding to the second fill mode includes: taking a point in the target area as the fill vertex, and performing angular filling of at least two fill materials in the target area.
4. The method according to claim 3, characterized in that, When the projection object is the target area to be filled, the filling effect of the target area is determined according to the presentation state of the adjustment bar within the adjustment box and the currently applied target filling mode, including: When the target filling pattern is the first filling pattern, the width occupied by different fillers along the predetermined path in the target area is determined based on the distance between the first endpoint and the second endpoint.
5. The method according to claim 3, characterized in that, When the projection object is the target area to be filled, the filling effect of the target area is determined according to the presentation state of the adjustment bar within the adjustment box and the currently applied target filling mode, including: When the target fill pattern is the first fill pattern, the predetermined path is adjusted according to the direction indicated by the line connecting the first endpoint and the second endpoint.
6. The method according to claim 3, characterized in that, When the projection object is the target area to be filled, adjusting the filling effect of the target area according to the presentation state of the adjustment bar within the adjustment box and the currently applied target filling mode further includes: When the target filling pattern is the second filling pattern, the angles of at least two types of filling materials are determined according to the direction indicated by the line connecting the first endpoint and the second endpoint.
7. The method according to claim 3, characterized in that, When the projection object is the target area to be filled, adjusting the filling effect of the target area according to the presentation state of the adjustment bar within the adjustment box and the currently applied target filling mode further includes: When the target fill pattern is the second fill pattern, the position of the fill vertex is determined based on the position of the first endpoint.
8. The method according to claim 1, characterized in that, The step of adjusting and displaying the projection effect of the projection object based on the presentation state of the adjustment bar within the adjustment box and the projection object includes: When the projection object is the text to which a shadow is to be added, the width of the shadow to be added to the text is determined based on the distance between the first endpoint and the second endpoint; And / or, The direction of adding shadows and text is determined based on the direction indicated by the line connecting the first endpoint and the second endpoint.
9. A projection device for image and text processing, characterized in that, include: The display module includes a control panel; the control panel includes an adjustment frame and an adjustment bar displayed within the adjustment frame; the adjustment bar includes at least a first endpoint and a second endpoint; the control panel is used to adjust the projection effect of the projected object; the control panel is different from the control panel of the projected object; the projected object includes a target area to be filled and text to be shadowed; The detection module is used to detect adjustment operations applied to the first endpoint and / or the second endpoint; The first adjustment module is used to adjust the position of the first endpoint and / or the second endpoint within the adjustment frame according to the adjustment operation; The second adjustment module is used to adjust and display the projection effect of the projection object according to the presentation state of the adjustment bar in the adjustment frame and the projection object; wherein, there is a preset correspondence between the presentation state of the adjustment bar in the adjustment frame and the projection object, and the preset correspondence includes a correspondence between positions and a correspondence between directions.
10. An electronic device, characterized in that, include: A processor and a memory for storing executable instructions capable of running on the processor, wherein, When the processor is used to run the executable instructions, the executable instructions perform the method described in any one of claims 1 to 8.
11. A non-transitory computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions that, when executed by a processor, implement the method described in any one of claims 1 to 8.