Beispiel #1
0
        public void InitImage(byte[] byIn, Int32 imWidth, Int32 imHeight, Int32[] colp) // loads an image
        {
            GeoImageTools gimt = new GeoImageTools();

            bmp = gimt.convertOneBandBytesto8bitBitmap(byIn, imWidth, imHeight, colp);
            //bmp = gimt.convertOneBandBytesto24bitBitmap(byIn, imWidth, imHeight);
            posX      = 0;
            posY      = 0;
            zoomLevel = 1F;
            zl        = 1F;
            if (displayImageSize == "true")
            {
                tslbl.Text = "Image size:(" + bmp.Width + "," + bmp.Height + ")";
            }
            zoomFull();
        }