In general, when a professional designer designs and produces an image mask, any image mask created according to a design subject matter or direction such as a romantic design, a perceptual design, a passionate design, or a design with the subject of culture and festival comprises three objects: a frame, a figure and a text. The frame object is a frame having a hollow window for covering the less important scenery at the edge of the processing image, such that the important main body of the processing image can be exposed from the hollow window. With the decoration of the frame object, the subject of the design can be shown, and thus many choices are available for the material of the frame and the shape of the hollow window to meet the requirements of different design subjects. The figure object is provided for decorating the figure of the frame object, and the figure object could be a pattern such as a flower, a bird, an animal, a zodiac sign or a symbol. The text object is used for describing or expressing the meaning of the image mask, and the text object could be a blessing, a seasonal greeting or a poem. Therefore, if a user clicks an image mask on the screen of an electronic device to attach the image mask to a processing image, the image mask will be merged with the processing image to produce a composed image in compliance with the user's requirements.
In
xo=a1*Wp+b1*Hp
yo=c1*Wp+d1*Hp
Cxo=a2*Wp+b2*Hp
Cyo=c2*Wp+d2*Hp
where, xo is the x-coordinate of an end point of an object 61 disposed within the range of the screen display; yo is the y-coordinate of an end point of the object 61 disposed within the range of the screen display; Wp is the width of the template 60 (which is also the width of the processing image page 70); Hp is the height of the template 60 (which is also the height of the processing image page 70); Cxo is the width of the display range of the object 61; Cyo is the height of the display range of the object 61; and a1, b1, c1, d1, a2, b2, c2 and d2 are parameters for the layout design of the object 61 on the template 60.
Based on the foregoing concept of the invention, the invention divides the object 61 of the image mask into the following attributes according to the meanings and features of the object 61:
(1) Variable Attribute: The variable attribute is also known as a unidirectional stretch attribute. When the object 61 adjusts its dimensions according to the change of dimensions of the image page 70, the deformation of the object 61 will not adversely affect the artistic visual effect of the image mask, and thus a deformation of the object 61 is allowed. In the aforementioned object, the frame object used for covering the less important scenery of the processing image 70 comes with such variable attribute.
(2) Invariable Attribute: The invariable attribute is also known as a proportional zooming attribute. As the object 61 varies as the dimensions of the image page 70, the change of the shape of the object 61 adversely affects the artistic visual effect of the image mask when its dimensions are changed, and thus the deformation of an object 61 should be prevented. In the foregoing objects, the figure object used for decorating the frame is often a physical object in the pattern of a flower, a bird, an animal or a horoscope sign, and thus its aspect ratio should meet the requirements and proportion for a natural artistic design, and the text object for expressing the meaning of the image mask comes with an aspect ratio that can meet a certain standard proportion. From the designer's viewpoints, the aspect ratios of both figure object and text object should be able to prohibit any deformation.
(3) Relative Position Attribute: As the object 61 varies with the dimensions of the image page 70 and adjusts its relative position on the template 60, the artistic visual effect of the image mask will not be affected adversely, and thus the object 61 can be fixed at the relative position. In the foregoing objects, the frame object is used for covering the less important scenery at the edge of the processing image 70, such that when the dimensions of the image page 70 are changed to adjust its relative position on the template 60, the artistic visual effect of the image mask will not be affected adversely. Further, the text object is used for expressing the meaning of the image mask and generally designed according to a specific ratio (with half of the page for its width and one-third of the page for its height) on the image mask. As the image page 70 varies, the relative position on the template 60 is changed, and thus the artistic visual effect of the image mask will not be affected adversely.
(4) Absolute Position Attribute: As the dimensions of the image page 70 vary, the artistic visual effect of the image mask will be affected adversely If the distance between an object 61 and a certain standard reference point (such as an upper left corner, an upper right corner, an upper boundary, a lower boundary, a longitudinal center line or a transversal center line) of the image page 70 remains unchanged. Therefore, the distance between the object 61 and a certain standard reference point of the image page 70 is allowed to be maintained constant. In the foregoing object, the figure object is provided for decorating the frame object, and thus the distance between its position and a certain standard reference point of the image page 70 should be maintained constant, so as maximize the effect of decorating the frame object.
In the method for automatically adjusting the position and size of each object of an image mask to fit an image page of the present invention, designers can set the attributes for the frame, figure and text of the object 61 in advance according to the attributes of the foregoing object. In other words, each object 61 in the above formula arranges the design parameters a1, b1, c1, d1, a2, b2, c2, d2 on the template 60, so that when the size of the processing image page 70 is changed, the position and dimensions of the object 61 can be adjusted, and the adjusted position and dimensions still can meet the requirements of an artistic visual effect. In the specification of a preferred embodiment of the present invention as shown in
(1) Frame Object 913: The relative position and dimensions of the image mask 91 can be adjusted according to the preset variable and relative position attributes and the change of aspect ratio of the image page 90 to fit the page size of the processing image 90, such that after the image mask 91 is adjusted, the size of hollow window 9131 of the frame object will change according to the change of width or height of the image 90, and its edges are aligned even with the edges of the page of the processing image 90.
(2) Figure Object 911: The dimension (width or height) of the figure object 911 can be adjusted proportionally according to the preset variable and absolute position attributes and the change of the dimension (width or height) of the page of the image 90 is changed automatically, such that the distance between the figure object 911 and a certain standard reference point (such as the upper left corner and the lower right corner) of the page of the image 90 is maintained constant. After the image mask 91 is adjusted, the figure object 911 will not be distorted and deformed, and the figure object 911 will be fixed at the corresponding absolute position.
(3) Text Object 912: The dimensions of the text object 912 can be adjusted proportionally according to a preset variable and absolute position attribute and the change of the dimension (width or height) of the image 90, and a specific distance between the text object 912 and a certain standard reference point (such as a longitudinal center line) of the image 90 is maintained, such that after the image mask 91 is adjusted, the text object 912 will not be distorted and deformed, and the text object 912 will be fixed at the corresponding matched and coordinated position.
After the attributes for the position and size of an object such as a frame 913, a
While the invention herein disclosed has been described by means of specific embodiments, numerous modifications and variations could be made thereto by those skilled in the art without departing from the scope and spirit of the invention set forth in the claims.