ide/PictureEdit: Improved viewing alpha blended PNGs
authorJerome St-Louis <jerome@ecere.com>
Thu, 24 Apr 2014 04:46:47 +0000 (00:46 -0400)
committerJerome St-Louis <jerome@ecere.com>
Thu, 24 Apr 2014 04:46:47 +0000 (00:46 -0400)
ide/src/documents/PictureEdit.ec

index 4957f35..400129f 100644 (file)
@@ -135,8 +135,10 @@ class PictureEdit : Window
             if(bitmap.Load(fileName, null, null))
             {
                if(bitmap.pixelFormat == pixelFormatRGBA)
+               {
+                  bitmap.alphaBlend = true;
                   bitmap.Convert(null, pixelFormat888, null);
-
+               }
                //if(!eWindow_GetStartWidth(window) || !eWindow_GetStartHeight(window))
                {
                   Size size = initSize;  // what's the use of retrieving initSize