LoadImagePalette method
StructPointer<Color>
LoadImagePalette(
- Image image,
- int maxPaletteSize,
- MemoryPointer<
RInt> colorCount
override
Load colors palette from image as a Color array (RGBA - 32bit)
Implementation
@override
StructPointer<Color> LoadImagePalette(
Image image,
int maxPaletteSize,
MemoryPointer<RInt> colorCount,
) => Color.struct.ptr(_ffi.LoadImagePalette(
Image$.Ref1(image).asNativePointer<ImageC>().ref,
maxPaletteSize,
colorCount.asNativePointer(),
).asMemoryPointer());