Method for generating signed distance field image, method for generating text effect image, device and medium
AssigneeBeijing Zitiao Network Technology Co., Ltd.
InventorsLiyou XU, Chenxiang ZHAO
Life of this patent
Estimating the term…
Loading patent…
AssigneeBeijing Zitiao Network Technology Co., Ltd.
InventorsLiyou XU, Chenxiang ZHAO
Estimating the term…
A method for generating a signed distance field image, methods for processing a text effect, a device and a medium are provided. The method for generating a signed distance field image includes: determining a target closed curve in an unsigned distance field image of target text, and drawing a target triangle; performing counting for pixels within the target triangle based on a drawing direction of the target triangle; determining that pixels having counting results equal to 0 in the unsigned distance field image are located in an interior region of the target text, and determining that pixels having counting results not equal to 0 in the unsigned distance field image are located in the exterior region of the target text; and generating a signed distance field image of the target text based on the pixels located in the exterior region of the target text, the pixels located in the interior region of the target text, and the unsigned distance field image.
A method for generating a signed distance field image, comprising:
An electronic device, comprising:
A non-volatile computer-readable storage medium having instructions stored thereon, wherein the instructions, when being executed by a terminal device, cause the terminal device to implement steps of:
Dependencies are inferred from the claim text.