private VideoCardGamma(_vcgt vcgt) { this.vcgt = vcgt; Red = ToneCurve.FromHandle(vcgt.red); Green = ToneCurve.FromHandle(vcgt.green); Blue = ToneCurve.FromHandle(vcgt.blue); }
private UcrBg(_ucrBg ucrBg) { this.ucrBg = ucrBg; Ucr = ToneCurve.FromHandle(ucrBg.ucr); Bg = ToneCurve.FromHandle(ucrBg.bg); Desc = MultiLocalizedUnicode.FromHandle(ucrBg.desc); }
/// <summary> /// Initialises a new instance of the <see cref="VideoCardGamma"/> class. /// </summary> /// <param name="red">A tone curve for the red component.</param> /// <param name="green">A tone curve for the red component.</param> /// <param name="blue">A tone curve for the red component.</param> public VideoCardGamma(ToneCurve red, ToneCurve green, ToneCurve blue) { Red = red; vcgt.red = red.Handle; Green = green; vcgt.green = green.Handle; Blue = blue; vcgt.blue = blue.Handle; }
/// <summary> /// Initialises a new instance of the <see cref="UcrBg"/> class. /// </summary> /// <param name="ucr">A tone curve for under color removal.</param> /// <param name="bg">A tone curve for black generation.</param> /// <param name="desc">A description of the method used for under color removal and black generation.</param> public UcrBg(ToneCurve ucr, ToneCurve bg, MultiLocalizedUnicode desc) { Ucr = ucr; ucrBg.ucr = ucr.Handle; Bg = bg; ucrBg.bg = bg.Handle; Desc = desc; ucrBg.desc = desc.Handle; }
public ToneCurve Join(Context context, ToneCurve other, int nPoints) { return(new ToneCurve(Interop.JoinToneCurve(context?.Handle ?? IntPtr.Zero, _handle, other.Handle, nPoints))); }