public unsafe ImageLab24(ImageRgb24 img) : base(img.Width, img.Height) { int length = img.Length; UnmanagedImageConverter.ToLab24(img.Start, (Lab24 *)this.StartIntPtr, length); }
public static unsafe Lab24 CreateFrom(Rgb24 color) { Lab24 dst = new Lab24(); UnmanagedImageConverter.ToLab24(&color, &dst, 1); return(dst); }
public unsafe void Copy(byte *from, void *to, int length) { UnmanagedImageConverter.ToLab24(from, (Lab24 *)to, length); }