예제 #1
0
        void ShowTga()
        {
            Bitmap BMP   = (Bitmap)T;
            Bitmap Thumb = T.GetPostageStampImage();

            if (BMP.PixelFormat == PixelFormat.Format16bppGrayScale)
            {
                BMP = Gray16To8bppIndexed(BMP);
                if (Thumb != null)
                {
                    Thumb = Gray16To8bppIndexed(Thumb);
                }
            }

            PreviewBoxExt.Image = BMP;
        }
예제 #2
0
        void ShowTga()
        {
            Bitmap BMP   = (Bitmap)T;
            Bitmap Thumb = T.GetPostageStampImage();

            // Convert image if Format16bppGrayScale
            if (BMP.PixelFormat == PixelFormat.Format16bppGrayScale)
            {
                BMP = Gray16To8bppIndexed(BMP);
                if (Thumb != null)
                {
                    Thumb = Gray16To8bppIndexed(Thumb);
                }
            }

            pictureBox1.Image   = BMP;
            pictureBox2.Visible = (Thumb != null);
            pictureBox2.Image   = Thumb;

            richTextBox1.Text = T.GetInfo();
        }