pixelGetColorAsString method

String? pixelGetColorAsString()

PixelGetColorAsString() returns the color of the pixel wand as a string.

Implementation

String? pixelGetColorAsString() {
  final Pointer<Char> colorPtr =
      _magickWandBindings.PixelGetColorAsString(_wandPtr);
  String? color = colorPtr.toNullableString();
  _magickRelinquishMemory(colorPtr.cast());
  return color;
}