🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.delphi.winforms.controls.using
5 messages
5 total messages Started by mohit Thu, 24 Aug 2006 01:23
toolbar image quality... :(
#235
Author: mohit
Date: Thu, 24 Aug 2006 01:23
18 lines
1328 bytes
Hey guys, 

I am having heaps of trouble with image quality of toolbarbutton... it is simply shit... 


link for the image: 

<a href="http://img246.imageshack.us/my.php?image=winformlh2.jpg" 
target="_blank"><img 
src="http://img246.imageshack.us/img246/5075/winformlh2.th.jpg" 
border="0" alt="Free Image Hosting at www.ImageShack.us" /></a> 


I am very upset with the quality of the image on toolbar button... I am using .NET 1.1, using c# in delphi 2006 ... 


please help!!!!!!!! 
Re: toolbar image quality... :(
#236
Author: Horst Reichert
Date: Thu, 24 Aug 2006 07:15
8 lines
1081 bytes
What is the format of your bitmaps?
32 bit ARGB?
32 bit RGB?
...
8 bit 265 color table?

Do you use the transparent color?
..... 
Re: toolbar image quality... :(
#237
Author: mohit
Date: Thu, 24 Aug 2006 19:52
30 lines
2041 bytes
Thanks for the reply
I have tried using GlyFX's Icons of type PNG and size is 24x24. I am using imagelist to add my icons to the toolbar. Before importing the images to imagelist i change the propetries to following: 
image size: 24, 24 (tried diffrent sizes)
colour depth: 32 bit (tried other depths as well)

NOTE: I reload all the images from the GlzFX each time is change the size or quality otherwise it takes the embedded image in the .rex file and changes it...

Toolbar is having following properties:
style: flat (tried using the regular one as well)
Autosize: true
Size: 50, 50 (sometimes it sizes according to this or sometimes it does the autosize)
Imagelist: is the one which i created

all the other properties in the toolbar and imagelist are same... 
Its quite anoying with the image quality as GUI is for end user and if the image quality is shit then it doesn't look like a professional windows app. Please help... 



"Horst Reichert" <horst.reichert@rt-science.de> wrote:
>What is the format of your bitmaps?
>32 bit ARGB?
>32 bit RGB?
>...
>8 bit 265 color table?
>
>Do you use the transparent color?
>..... 
>
>
Re: toolbar image quality... :(
#238
Author: Horst Reichert
Date: Fri, 25 Aug 2006 07:15
16 lines
1702 bytes
The major problem is that the standard toolbar button images do not support 
transparency (even with VS-Studio 2005). Thus fancy drop down shadows etc., 
that make normal application icons so nice looking, will display as ugly 
dark grey borders. Thus be sure that designing your bitmaps for tool buttons 
do produce them without XP-Transparency. When creating the image list, you 
should modify the ColorDepth to Dpth32Bit or Depth24Bit before adding the 
images.

I hope your design will improve with these hints.

I also hope that someday transparent XP-bitmaps will be displayed correctly 
with the standard toolbar buttons.



Regards Horst
Re: toolbar image quality... :(
#239
Author: mohit
Date: Thu, 31 Aug 2006 20:31
29 lines
1879 bytes
thanks horst, got a dojy way to  fix it but after each 		Application.EnableVisualStyles();
do 
	Application.DoEvents();

And it works fine.... lol
Thanks again



"Horst Reichert" <horst.reichert@rt-science.de> wrote:
>The major problem is that the standard toolbar button images do not support 
>transparency (even with VS-Studio 2005). Thus fancy drop down shadows etc., 
>that make normal application icons so nice looking, will display as ugly 
>dark grey borders. Thus be sure that designing your bitmaps for tool buttons 
>do produce them without XP-Transparency. When creating the image list, you 
>should modify the ColorDepth to Dpth32Bit or Depth24Bit before adding the 
>images.
>
>I hope your design will improve with these hints.
>
>I also hope that someday transparent XP-bitmaps will be displayed correctly 
>with the standard toolbar buttons.
>
>
>
>Regards Horst
>
>
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads