예제 #1
0
        public unsafe ImageRgb24 ToImageRgb24()
        {
            ImageRgb24 img = new ImageRgb24(this.Width, this.Height);

            UnmanagedImageConverter.ToRgb24((Lab24 *)this.StartIntPtr, img.Start, img.Length);
            return(img);
        }
예제 #2
0
        public unsafe Rgb24 ToRgb24()
        {
            Rgb24 dst = new Rgb24();

            fixed(Lab24 *l = &this)
            {
                UnmanagedImageConverter.ToRgb24(l, &dst, 1);
            }

            return(dst);
        }
예제 #3
0
 public unsafe void Copy(byte *from, void *to, int length)
 {
     UnmanagedImageConverter.ToRgb24(from, (Rgb24 *)to, length);
 }
예제 #4
0
 protected override unsafe void ToBitmapCore(byte *src, byte *dst, int width)
 {
     UnmanagedImageConverter.ToRgb24((Lab24 *)src, (Rgb24 *)dst, width);
 }