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

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

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

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

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