Image.fromPointer constructor
Image.fromPointer(
- Pointer<
SizedNativeType> ptr, { - required int width,
- required int height,
- required int channels,
- required StbiChannel desiredChannels,
- required StbiDType dtype,
- bool attach = true,
Implementation
Image.fromPointer(
ffi.Pointer<ffi.SizedNativeType> ptr, {
required int width,
required int height,
required int channels,
required StbiChannel desiredChannels,
required this.dtype,
super.attach,
}) : _width = width,
_height = height,
_channels = channels,
_desiredChannels = desiredChannels,
super(ptr.cast(), externalSize: width * height * channels);