rotateUint32List static method
- required Uint32List uint32list,
- required int imageWidth,
- required int imageHeight,
- RotateType rotateType = RotateType.none,
Image pixel collection rotation.
Note: The image pixel set is rotated, and the width and height of the image will change. For example: if the original image is 100 * 80, if it is rotated by 90° + 2πk, the width and height of the image will become 80 * 100; if it is rotated by 180° + 2πk, the width and height of the image will remain unchanged; if it is rotated by 270° + 2πk, the width and height of the image will become 80 * 100; if it is rotated by 360° + 2πk, the width and height of the image will remain unchanged; Therefore, you need to pay attention to the change of image width and height when using the converted image pixel set.
@uint32list:
uint32list
is the Uint32list collection converted from image pixels, not the Uint32List collection converted from image binary.
@imageWidth & @imageHeight:
imageWidth
and imageHeight
are the height and width of the image.
@rotateType: Image pixel collection rotation type, Please see RotateType for details.
Implementation
static Uint32List rotateUint32List({
required Uint32List uint32list,
required int imageWidth,
required int imageHeight,
RotateType rotateType = RotateType.none,
}) =>
IImageRotate.rotateUint32List(
uint32list: uint32list,
imageWidth: imageWidth,
imageHeight: imageHeight,
rotateType: rotateType,
);