Hi there. I have a problem using 32 bit alpha blended bmps together with the glyph property of the ribbons application button. All icons does have a white border on the left and upper side. See the screenshot in the attached zip file. I also attached the used png image and the generated 32 bit image of the example.
I used the tool provided by http://cetus.sakura.ne.jp/softlab/b2p-home/ (using argument -A) to convert the png icons of icon experience (http://www.iconexperience.com/) to 32 bit bmp icons. I also tried photoshop to convert the pngs to 32 bit bitmaps, but the resulting bitmap could not be read by delphi (stream read error).
I also looked at issue AB8326 (and others) to resolve my problem, but it doesn't help.
Steps to Reproduce:
see above
Actual Results:
Fixed for ExpressBars components.
Expected Results:
Same behavior for all DevExpress components.
Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.
Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.
Hi Tobias,
As we discovered, the resulting images produced by this converter are wrong. Sorry, but we cannot resolve such problems at the ExpressBars' level. Fortunately, the ExpressBars already has a good solution - it allows you to load PNG images to the Glyph properties of its components. Try to invoke the Designer for the Application Button's Glyph property and load your PNG images without converting them.
If you wish to convert your PNG images to bitmaps, try using the TdxPNGImage class (dxGDIPlusClasses.pas):
1) call its LoadFromFile method to load an image from PNG file;
2) call its GetAsBitmap method to obtain a bitmap representation of the loaded PNG image.
NOTE: TdxPNGImage requires GDI+. So, you cannot use this code in your application at runtime. You should convert a PNG image to bitmap on your development machine where GDI+ is present and then, use the resulting bitmap in your applications.
Thanks,
Serge
I used an older version (previous release), which did not support PNG images as glyphs. Now it works fine with PNG images.
Hi Tobias,
I am glad to hear that you can now use PNG images for the Application Button of the Ribbon control.
Thanks,
Serge