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); }
public static IntPtr CreateColorSpace(ref LogColorSpace logColorSpace) { var hColorSpace = _CreateColorSpace(ref logColorSpace); if (hColorSpace == null) { throw new Win32Exception(); } return(hColorSpace); }
public Win32ColorSpace() : this(LogColorSpace.CreateSRGB()) { }
private Win32ColorSpace(LogColorSpace colorSpace) { _colorSpaceInfo = colorSpace; }
private static extern IntPtr _CreateColorTransform( [In] ref LogColorSpace pLogColorSpace, [In] IntPtr hDestProfile, [In] IntPtr hTargetProfile, [In] ColorTransformMode dwFlags);
private static extern IntPtr _CreateColorSpace([In, Out] ref LogColorSpace logColorSpace);