public static extern bool GetColorAdjustment([In] IntPtr hdc, [Out] out ColorAdjustment lpca);
/// <summary> /// The SetColorAdjustment function sets the color adjustment values for a device context (DC) using the specified values /// </summary> /// <param name="hdc">Handle to the device context</param> /// <param name="lpca">Pointer to a COLORADJUSTMENT structure containing the color adjustment values</param> /// <returns>If the function succeeds, the return value is nonzero, otherwise 0</returns> public static bool SetColorAdjustment(IntPtr hdc, ref ColorAdjustment lpca) { return(Native.SetColorAdjustment(hdc, ref lpca)); }
public static extern bool SetColorAdjustment([In] IntPtr hdc, [In] ref ColorAdjustment lpca);
/// <summary> /// The GetColorAdjustment function retrieves the color adjustment /// values for the specified device context (DC) /// </summary> /// <param name="hdc">Handle to the device context.</param> /// <param name="lpca">Pointer to a COLORADJUSTMENT structure that receives the color adjustment values</param> /// <returns>If the function succeeds, the return true, otherwise false.</returns> public static bool GetColorAdjustment([In] IntPtr hdc, [Out] out ColorAdjustment lpca) { return(Native.GetColorAdjustment(hdc, out lpca)); }