Lines Matching refs:image
3 …image information, cropping, scaling, translating, rotating, flipping, setting opacity, and readin…
7 Read [Image](../../reference/apis-image-kit/js-apis-image.md#pixelmap7) for APIs related to image t…
9 1. Complete [image decoding](image-decoding.md) and obtain a **PixelMap** object.
11 2. Obtain image information.
15 // Obtain the image size.
16 pixelMap.getImageInfo().then( (info : image.ImageInfo) => {
20 console.error("Failed to obtain the image pixel map information.And the error is: " + err);
24 3. Perform image transformation.
26 Original image:
30 - Crop the image.
42 - Scale the image.
45 // The width of the image after scaling is 0.5 of the original width.
46 // The height of the image after scaling is 0.5 of the original height.
52 - Translate the image.
55 // Translate the image by 100 units downwards.
56 // Translate the image by 100 units rightwards.
62 - Rotate the image.
65 // Rate the image clockwise by 90°.
71 - Flip the image.
74 // Flip the image vertically.
81 // Flip the image horizontally.
87 - Set the opacity of the image.