Пример #1
0
        public void GetScanlines()
        {
            FreeImageBitmap fib;

            fib = new FreeImageBitmap(10, 10, PixelFormat.Format1bppIndexed);
            IList <Scanline <FI1BIT> > scanline01 = (IList <Scanline <FI1BIT> >)fib.GetScanlines();

            fib.Dispose();

            fib = new FreeImageBitmap(10, 10, PixelFormat.Format4bppIndexed);
            IList <Scanline <FI4BIT> > scanline02 = (IList <Scanline <FI4BIT> >)fib.GetScanlines();

            fib.Dispose();

            fib = new FreeImageBitmap(10, 10, PixelFormat.Format8bppIndexed);
            IList <Scanline <Byte> > scanline03 = (IList <Scanline <Byte> >)fib.GetScanlines();

            fib.Dispose();

            fib = new FreeImageBitmap(10, 10, PixelFormat.Format16bppRgb555);
            IList <Scanline <FI16RGB555> > scanline04 = (IList <Scanline <FI16RGB555> >)fib.GetScanlines();

            fib.Dispose();

            fib = new FreeImageBitmap(10, 10, PixelFormat.Format16bppRgb565);
            IList <Scanline <FI16RGB565> > scanline05 = (IList <Scanline <FI16RGB565> >)fib.GetScanlines();

            fib.Dispose();

            fib = new FreeImageBitmap(10, 10, PixelFormat.Format24bppRgb);
            IList <Scanline <RGBTRIPLE> > scanline06 = (IList <Scanline <RGBTRIPLE> >)fib.GetScanlines();

            fib.Dispose();

            fib = new FreeImageBitmap(10, 10, PixelFormat.Format32bppArgb);
            IList <Scanline <RGBQUAD> > scanline07 = (IList <Scanline <RGBQUAD> >)fib.GetScanlines();

            fib.Dispose();

            fib = new FreeImageBitmap(10, 10, FREE_IMAGE_TYPE.FIT_COMPLEX);
            IList <Scanline <FICOMPLEX> > scanline08 = (IList <Scanline <FICOMPLEX> >)fib.GetScanlines();

            fib.Dispose();

            fib = new FreeImageBitmap(10, 10, FREE_IMAGE_TYPE.FIT_DOUBLE);
            IList <Scanline <Double> > scanline09 = (IList <Scanline <Double> >)fib.GetScanlines();

            fib.Dispose();

            fib = new FreeImageBitmap(10, 10, FREE_IMAGE_TYPE.FIT_FLOAT);
            IList <Scanline <Single> > scanline10 = (IList <Scanline <Single> >)fib.GetScanlines();

            fib.Dispose();

            fib = new FreeImageBitmap(10, 10, FREE_IMAGE_TYPE.FIT_INT16);
            IList <Scanline <Int16> > scanline11 = (IList <Scanline <Int16> >)fib.GetScanlines();

            fib.Dispose();

            fib = new FreeImageBitmap(10, 10, FREE_IMAGE_TYPE.FIT_INT32);
            IList <Scanline <Int32> > scanline12 = (IList <Scanline <Int32> >)fib.GetScanlines();

            fib.Dispose();

            fib = new FreeImageBitmap(10, 10, FREE_IMAGE_TYPE.FIT_RGB16);
            IList <Scanline <FIRGB16> > scanline13 = (IList <Scanline <FIRGB16> >)fib.GetScanlines();

            fib.Dispose();

            fib = new FreeImageBitmap(10, 10, FREE_IMAGE_TYPE.FIT_RGBA16);
            IList <Scanline <FIRGBA16> > scanline14 = (IList <Scanline <FIRGBA16> >)fib.GetScanlines();

            fib.Dispose();

            fib = new FreeImageBitmap(10, 10, FREE_IMAGE_TYPE.FIT_RGBAF);
            IList <Scanline <FIRGBAF> > scanline15 = (IList <Scanline <FIRGBAF> >)fib.GetScanlines();

            fib.Dispose();

            fib = new FreeImageBitmap(10, 10, FREE_IMAGE_TYPE.FIT_RGBF);
            IList <Scanline <FIRGBF> > scanline16 = (IList <Scanline <FIRGBF> >)fib.GetScanlines();

            fib.Dispose();

            fib = new FreeImageBitmap(10, 10, FREE_IMAGE_TYPE.FIT_UINT16);
            IList <Scanline <UInt16> > scanline17 = (IList <Scanline <UInt16> >)fib.GetScanlines();

            fib.Dispose();

            fib = new FreeImageBitmap(10, 10, FREE_IMAGE_TYPE.FIT_UINT32);
            IList <Scanline <UInt32> > scanline18 = (IList <Scanline <UInt32> >)fib.GetScanlines();

            fib.Dispose();
        }
Пример #2
0
        public void GetScanlines()
        {
            FreeImageBitmap fib;

            fib = new FreeImageBitmap(10, 10, PixelFormat.Format1bppIndexed);
            IList<Scanline<FI1BIT>> scanline01 = (IList<Scanline<FI1BIT>>)fib.GetScanlines();
            fib.Dispose();

            fib = new FreeImageBitmap(10, 10, PixelFormat.Format4bppIndexed);
            IList<Scanline<FI4BIT>> scanline02 = (IList<Scanline<FI4BIT>>)fib.GetScanlines();
            fib.Dispose();

            fib = new FreeImageBitmap(10, 10, PixelFormat.Format8bppIndexed);
            IList<Scanline<Byte>> scanline03 = (IList<Scanline<Byte>>)fib.GetScanlines();
            fib.Dispose();

            fib = new FreeImageBitmap(10, 10, PixelFormat.Format16bppRgb555);
            IList<Scanline<FI16RGB555>> scanline04 = (IList<Scanline<FI16RGB555>>)fib.GetScanlines();
            fib.Dispose();

            fib = new FreeImageBitmap(10, 10, PixelFormat.Format16bppRgb565);
            IList<Scanline<FI16RGB565>> scanline05 = (IList<Scanline<FI16RGB565>>)fib.GetScanlines();
            fib.Dispose();

            fib = new FreeImageBitmap(10, 10, PixelFormat.Format24bppRgb);
            IList<Scanline<RGBTRIPLE>> scanline06 = (IList<Scanline<RGBTRIPLE>>)fib.GetScanlines();
            fib.Dispose();

            fib = new FreeImageBitmap(10, 10, PixelFormat.Format32bppArgb);
            IList<Scanline<RGBQUAD>> scanline07 = (IList<Scanline<RGBQUAD>>)fib.GetScanlines();
            fib.Dispose();

            fib = new FreeImageBitmap(10, 10, FREE_IMAGE_TYPE.FIT_COMPLEX);
            IList<Scanline<FICOMPLEX>> scanline08 = (IList<Scanline<FICOMPLEX>>)fib.GetScanlines();
            fib.Dispose();

            fib = new FreeImageBitmap(10, 10, FREE_IMAGE_TYPE.FIT_DOUBLE);
            IList<Scanline<Double>> scanline09 = (IList<Scanline<Double>>)fib.GetScanlines();
            fib.Dispose();

            fib = new FreeImageBitmap(10, 10, FREE_IMAGE_TYPE.FIT_FLOAT);
            IList<Scanline<Single>> scanline10 = (IList<Scanline<Single>>)fib.GetScanlines();
            fib.Dispose();

            fib = new FreeImageBitmap(10, 10, FREE_IMAGE_TYPE.FIT_INT16);
            IList<Scanline<Int16>> scanline11 = (IList<Scanline<Int16>>)fib.GetScanlines();
            fib.Dispose();

            fib = new FreeImageBitmap(10, 10, FREE_IMAGE_TYPE.FIT_INT32);
            IList<Scanline<Int32>> scanline12 = (IList<Scanline<Int32>>)fib.GetScanlines();
            fib.Dispose();

            fib = new FreeImageBitmap(10, 10, FREE_IMAGE_TYPE.FIT_RGB16);
            IList<Scanline<FIRGB16>> scanline13 = (IList<Scanline<FIRGB16>>)fib.GetScanlines();
            fib.Dispose();

            fib = new FreeImageBitmap(10, 10, FREE_IMAGE_TYPE.FIT_RGBA16);
            IList<Scanline<FIRGBA16>> scanline14 = (IList<Scanline<FIRGBA16>>)fib.GetScanlines();
            fib.Dispose();

            fib = new FreeImageBitmap(10, 10, FREE_IMAGE_TYPE.FIT_RGBAF);
            IList<Scanline<FIRGBAF>> scanline15 = (IList<Scanline<FIRGBAF>>)fib.GetScanlines();
            fib.Dispose();

            fib = new FreeImageBitmap(10, 10, FREE_IMAGE_TYPE.FIT_RGBF);
            IList<Scanline<FIRGBF>> scanline16 = (IList<Scanline<FIRGBF>>)fib.GetScanlines();
            fib.Dispose();

            fib = new FreeImageBitmap(10, 10, FREE_IMAGE_TYPE.FIT_UINT16);
            IList<Scanline<UInt16>> scanline17 = (IList<Scanline<UInt16>>)fib.GetScanlines();
            fib.Dispose();

            fib = new FreeImageBitmap(10, 10, FREE_IMAGE_TYPE.FIT_UINT32);
            IList<Scanline<UInt32>> scanline18 = (IList<Scanline<UInt32>>)fib.GetScanlines();
            fib.Dispose();
        }