CodedK
asked on
Using ImageList, transparent icons look ungly
Hi.
I have to use almost 20 icons depending on an event.
So i've used an ImageList to handle those icons (96x96) and load them to the Timage.
But the loaded icon looks ... well very ugly.
The code :
-=-=-=-=-=-=-=-=-=-=-=-=-= -=-=-=-=-= -=-=-=-=-= -=-=-=-=
var
b: TIcon;
begin
b := TIcon.Create;
If (condition) then .......ImageList1.GetIcon( 5,b); ..... Image6.Picture.Assign(b);. ......
-=-=-=-=-=-=-=-=-=-=-=-=-= -=-=-=-=-= -=-=-=-=-= -=-=-=-=
I have set the drawing style to transparent, but no joy.
When i load to the TImage the icons one by one from a file, the result is fine.
But i want to hold those icons inside the executable.
Is there something wrong with the code?
Is there another ImageList component that handle icons better (free)?
Thanks in advance.
I have to use almost 20 icons depending on an event.
So i've used an ImageList to handle those icons (96x96) and load them to the Timage.
But the loaded icon looks ... well very ugly.
The code :
-=-=-=-=-=-=-=-=-=-=-=-=-=
var
b: TIcon;
begin
b := TIcon.Create;
If (condition) then .......ImageList1.GetIcon(
-=-=-=-=-=-=-=-=-=-=-=-=-=
I have set the drawing style to transparent, but no joy.
When i load to the TImage the icons one by one from a file, the result is fine.
But i want to hold those icons inside the executable.
Is there something wrong with the code?
Is there another ImageList component that handle icons better (free)?
Thanks in advance.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Fair enough, glad you found a solution though :o)