Esempio n. 1
0
        public static unsafe Lab24 CreateFrom(Rgb24 color)
        {
            Lab24 dst = new Lab24();

            UnmanagedImageConverter.ToLab24(&color, &dst, 1);
            return(dst);
        }
Esempio n. 2
0
        public unsafe ImageRgb24 ToImageRgb24()
        {
            ImageRgb24 img = new ImageRgb24(this.Width, this.Height);

            UnmanagedImageConverter.ToRgb24((Lab24 *)this.StartIntPtr, img.Start, img.Length);
            return(img);
        }
Esempio n. 3
0
        public unsafe ImageLab24(ImageRgb24 img)
            : base(img.Width, img.Height)
        {
            int length = img.Length;

            UnmanagedImageConverter.ToLab24(img.Start, (Lab24 *)this.StartIntPtr, length);
        }
Esempio n. 4
0
        public unsafe Rgb24 ToRgb24()
        {
            Rgb24 dst = new Rgb24();

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

            return(dst);
        }
Esempio n. 5
0
 public unsafe void Copy(Argb32 *from, void *to, int length)
 {
     UnmanagedImageConverter.Copy((Byte *)from, (Byte *)to, length * 4);
 }
Esempio n. 6
0
 public unsafe void Copy(Rgb24 *from, void *to, int length)
 {
     UnmanagedImageConverter.ToArgb32(from, (Argb32 *)to, length);
 }
Esempio n. 7
0
 protected override unsafe void ToBitmapCore(byte *src, byte *dst, int width)
 {
     UnmanagedImageConverter.Copy(src, dst, width * 4);
 }
Esempio n. 8
0
 public unsafe void Copy(byte *from, void *to, int length)
 {
     UnmanagedImageConverter.ToRgb24(from, (Rgb24 *)to, length);
 }
Esempio n. 9
0
 public unsafe void Copy(Rgb24 *from, void *to, int length)
 {
     UnmanagedImageConverter.Copy((byte *)from, (byte *)to, 3 * length);
 }
Esempio n. 10
0
 public unsafe void Copy(Argb32 *from, void *to, int length)
 {
     UnmanagedImageConverter.ToByte(from, (byte *)to, length);
 }
Esempio n. 11
0
 protected override unsafe void ToBitmapCore(byte *src, byte *dst, int width)
 {
     UnmanagedImageConverter.ToRgb24((Lab24 *)src, (Rgb24 *)dst, width);
 }
Esempio n. 12
0
 public unsafe void Copy(Argb32 *from, void *to, int length)
 {
     UnmanagedImageConverter.ToLab24(from, (Lab24 *)to, length);
 }