示例#1
0
        public unsafe ImageLab24(ImageRgb24 img)
            : base(img.Width, img.Height)
        {
            int length = img.Length;

            UnmanagedImageConverter.ToLab24(img.Start, (Lab24 *)this.StartIntPtr, length);
        }
示例#2
0
        public static unsafe Lab24 CreateFrom(Rgb24 color)
        {
            Lab24 dst = new Lab24();

            UnmanagedImageConverter.ToLab24(&color, &dst, 1);
            return(dst);
        }
示例#3
0
 public unsafe void Copy(byte *from, void *to, int length)
 {
     UnmanagedImageConverter.ToLab24(from, (Lab24 *)to, length);
 }