예제 #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);
            }
예제 #2
0
            public static IntPtr CreateColorSpace(ref LogColorSpace logColorSpace)
            {
                var hColorSpace = _CreateColorSpace(ref logColorSpace);

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