CSJ2K.J2kImage.FromBytes C# (CSharp) Method

FromBytes() public static method

public static FromBytes ( byte j2kdata, CSJ2K.j2k.util.ParameterList parameters = null ) : PortableImage
j2kdata byte
parameters CSJ2K.j2k.util.ParameterList
return PortableImage
        public static PortableImage FromBytes(byte[] j2kdata, ParameterList parameters = null)
        {
            using (var stream = new MemoryStream(j2kdata))
            {
                return FromStream(stream, parameters);
            }
        }