Exemplo n.º 1
0
            internal static IntPtr CreateColorTransform(ref LogColorSpace colorSpace, IntPtr hDestProfile, IntPtr hTargetProfile, ColorTransformMode transformMode)
            {
                var hTransform = _CreateColorTransform(ref colorSpace, hDestProfile, hTargetProfile, transformMode);

                if (hTransform == IntPtr.Zero)
                {
                    throw new Win32Exception(Marshal.GetLastWin32Error());
                }
                return(hTransform);
            }
Exemplo n.º 2
0
            public static IntPtr CreateColorSpace(ref LogColorSpace logColorSpace)
            {
                var hColorSpace = _CreateColorSpace(ref logColorSpace);

                if (hColorSpace == null)
                {
                    throw new Win32Exception();
                }
                return(hColorSpace);
            }
Exemplo n.º 3
0
 public Win32ColorSpace() : this(LogColorSpace.CreateSRGB())
 {
 }
Exemplo n.º 4
0
 private Win32ColorSpace(LogColorSpace colorSpace)
 {
     _colorSpaceInfo = colorSpace;
 }
Exemplo n.º 5
0
 private static extern IntPtr _CreateColorTransform(
     [In] ref LogColorSpace pLogColorSpace,
     [In] IntPtr hDestProfile,
     [In] IntPtr hTargetProfile,
     [In] ColorTransformMode dwFlags);
Exemplo n.º 6
0
 private static extern IntPtr _CreateColorSpace([In, Out] ref LogColorSpace logColorSpace);