Example #1
0
        public static unsafe Lab24 CreateFrom(Rgb24 color)
        {
            Lab24 dst = new Lab24();

            UnmanagedImageConverter.ToLab24(&color, &dst, 1);
            return(dst);
        }
Example #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);
        }
Example #3
0
        public unsafe ImageLab24(ImageRgb24 img)
            : base(img.Width, img.Height)
        {
            int length = img.Length;

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

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

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