Steema Issues Database

Note: This database is for bugs and wishes only. For technical support help, if you are a customer please visit our online forums;
otherwise you can use StackOverflow.
Before using this bug-tracker we recommend a look at this document, Steema Bug Fixing Policy.



Bug 1 - GDI+, speed penalty due to transparent Bitmap folder icons.
Summary: GDI+, speed penalty due to transparent Bitmap folder icons.
Status: CONFIRMED
Alias: None
Product: VCL TeeChart
Classification: Unclassified
Component: TTree (show other bugs)
Version: unspecified
Hardware: PC Windows
: --- enhancement
Target Milestone: ---
Assignee: Steema Issue Manager
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-09-20 13:48 EDT by david berneda
Modified: 2013-09-20 13:48 EDT (History)
0 users

See Also:
Chart Series: ---
Delphi / C++ Builder RAD IDE Version:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description david berneda 2013-09-20 13:48:59 EDT
Default TTree icons are *.bmp resources that have to be adapted, applying transparency so the Tree background is visible under the icon.

VCL GDI does this automatically (Bitmap.Transparent:=True), but when using GDI+, this process must be done each time the icon is painted, instead of doing this once the icon is loaded from the resource.

The speed difference is quite high.

One solution will be maintaining two sets of icons, one for GDI and another for GDI+ in PNG format with Alpha transparency.

Alpha PNG pictures would not need this conversion and should paint equally fast in GDI+