getBinary() public method

public getBinary ( ) : byte[]
return byte[]
Exemplo n.º 1
0
Arquivo: JPEG.cs Projeto: defrex/moxie
        public void updateDimensions(int width, int height)
        {
            ExifParser    exifParser;
            List <byte[]> headers;

            headers = getHeaders("app1");

            if (headers.Count != 0)
            {
                exifParser = new ExifParser();
                if (exifParser.init(headers[0]))
                {
                    exifParser.setExif("PixelXDimension", width);
                    exifParser.setExif("PixelYDimension", height);

                    setHeaders("app1", exifParser.getBinary());
                }
                exifParser.purge();
            }
        }
Exemplo n.º 2
0
        public void updateDimensions(int width, int height)
        {
            ExifParser exifParser;
            List<byte[]> headers;

            headers = getHeaders("exif");

            if (headers.Count != 0) {
                exifParser = new ExifParser();
                if (exifParser.init(headers[0])) {

                    exifParser.setExif("PixelXDimension", width);
                    exifParser.setExif("PixelYDimension", height);

                    setHeaders("exif", exifParser.getBinary());
                }
                exifParser.purge();
            }
        }