Пример #1
0
        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);
        }
Пример #2
0
        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);
        }
Пример #3
0
        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);
        }
Пример #4
0
        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);
        }
Пример #5
0
 public static ColorPalette GetDefaultGrayColorPalette()
 {
     return(BitmapBuilder <byte> .GetDefaultGrayColorPalette());
 }