As3.0 adds texture effects to text

Source: Internet
Author: User
Tags transparent image

The texture effect is not a text box, but an image is generated.

Use the copypixels Interface

Official explanation

Provides a fast routine for Pixel processing between images without stretching, rotating, or color effects. This method copies the rectangular area of the source image to a rectangle area of the same size in the target bitmapdata object.

IfAlphabitmapParameters andAlphapointYou can use another image as the Alpha source of the source image. If the source image has alpha data, both sets of Alpha data are used to combine pixels in the source image into the target image.AlphapointThe parameter is the point in the Alpha image corresponding to the upper left corner of the source rectangle. No pixels outside the cross area of the source image and Alpha image will be copied to the target image.

MergealphaThe attribute controls whether the alpha channel is used when a transparent image is copied to another transparent image. To copy pixels that contain alpha-channel data, SetMergealphaSet propertyTrue. By default,MergealphaThe property isFalse.

The alphabitmap parameter uses the bitmap generated by textfield as the parameter to create a text image with a texture.

As3.0 adds texture effects to text

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.