From 94132fa31ea61e063de6f1a44ea4b053510f444a Mon Sep 17 00:00:00 2001 From: Jerome St-Louis Date: Thu, 24 Apr 2014 00:46:47 -0400 Subject: [PATCH] ide/PictureEdit: Improved viewing alpha blended PNGs --- ide/src/documents/PictureEdit.ec | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ide/src/documents/PictureEdit.ec b/ide/src/documents/PictureEdit.ec index 4957f35..400129f 100644 --- a/ide/src/documents/PictureEdit.ec +++ b/ide/src/documents/PictureEdit.ec @@ -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 -- 1.8.3.1