CSJ2K.Util.ImageFactory.New C# (CSharp) Méthode

New() static private méthode

static private New ( int width, int height, byte bytes ) : IImage
width int
height int
bytes byte
Résultat IImage
        internal static IImage New(int width, int height, byte[] bytes)
        {
            return _creator.Create(width, height, bytes);
        }

Usage Example

        public T As <T>()
        {
            var image = ImageFactory.New(Width, Height, ToBytes(Width, Height, NumberOfComponents, _byteScaling, Data));

            return(image.As <T>());
        }