public static IBitmapBuilder <double> CreateBitmapBuilderDouble() { BitmapBuilder <double> builder = new BitmapBuilder <double>(); Func <double, byte> defaultStretcher = (v) => { return((byte)v); }; builder.SetDefaultStretcher(defaultStretcher, defaultStretcher, defaultStretcher, defaultStretcher); return(builder); }
public static IBitmapBuilder <float> CreateBitmapBuilderFloat() { BitmapBuilder <float> builder = new BitmapBuilder <float>(); Func <float, byte> defaultStretcher = (v) => { return((byte)v); }; builder.SetDefaultStretcher(defaultStretcher, defaultStretcher, defaultStretcher, defaultStretcher); return(builder); }
public static IBitmapBuilder <Int32> CreateBitmapBuilderInt32() { BitmapBuilder <Int32> builder = new BitmapBuilder <Int32>(); Func <Int32, byte> defaultStretcher = (v) => { return((byte)v); }; builder.SetDefaultStretcher(defaultStretcher, defaultStretcher, defaultStretcher, defaultStretcher); return(builder); }
public static IBitmapBuilder <UInt64> CreateBitmapBuilderUInt64() { BitmapBuilder <UInt64> builder = new BitmapBuilder <UInt64>(); Func <UInt64, byte> defaultStretcher = (v) => { return((byte)v); }; builder.SetDefaultStretcher(defaultStretcher, defaultStretcher, defaultStretcher, defaultStretcher); return(builder); }
public static ColorPalette GetDefaultGrayColorPalette() { return(BitmapBuilder <byte> .GetDefaultGrayColorPalette()); }