private INativeInstance CreateNativeInstance()
{
NativeQuantizeSettings instance = new NativeQuantizeSettings();
instance.SetColors(Colors);
instance.SetColorSpace(ColorSpace);
instance.SetDitherMethod(DitherMethod.HasValue ? DitherMethod.Value : ImageMagick.DitherMethod.No);
instance.SetMeasureErrors(MeasureErrors);
instance.SetTreeDepth(TreeDepth);
return instance;
}