| View previous topic :: View next topic |
| Author |
Message |
CodeScript Moderator Team

Joined: 08 Jun 2003 Posts: 1060 Location: India
|
Posted: Fri Jan 23, 2004 7:58 am Post subject: Bitmap Transparency |
|
|
| VDS 5 Help File wrote: | If INVISIBLE is specified, the bitmap will create invisible portions within
the image. The color at the position 0,0 on the bitmap determines the mask to use when making the image invisible. This style allows you to click and see desktop items under the bitmap control in the invisible portion. |
Does this apply only if the Dialog also has invisible style ? _________________ Regards
- CodeScript
Give your application a professional look with the VDSGUI Extension |
|
| Back to top |
|
 |
Vic D'Elfant Past Contributor


Joined: 26 Jun 2002 Posts: 673 Location: The Netherlands
|
Posted: Fri Jan 23, 2004 9:28 am Post subject: |
|
|
I though that TRANSPARENT bitmap style would work with all dialog styles..
Vic _________________ phpBB Development Team |
|
| Back to top |
|
 |
jules Professional Member


Joined: 14 Sep 2001 Posts: 1043 Location: Cumbria, UK
|
Posted: Fri Jan 23, 2004 11:33 am Post subject: |
|
|
| Vic wrote: | I though that TRANSPARENT bitmap style would work with all dialog styles..
|
It probably would if VDS bitmaps had a transparent style. _________________ The Tech Pro
www.tech-pro.net |
|
| Back to top |
|
 |
Serge Professional Member


Joined: 04 Mar 2002 Posts: 1480 Location: Australia
|
Posted: Fri Jan 23, 2004 12:36 pm Post subject: |
|
|
be careful with the use of bitmaps and ico files...i have found that the bitmap only displays the top left 1/4 of the ico file ... to make it display properly, i have had to design 32x32 icons and only use the top left 1/4 as if i was designing a 16x16 icon and ignore the rest...not sure how all this works but it does work...for me anyway...anyone else found the same "problem"?
serge _________________
|
|
| Back to top |
|
 |
jules Professional Member


Joined: 14 Sep 2001 Posts: 1043 Location: Cumbria, UK
|
Posted: Fri Jan 23, 2004 2:06 pm Post subject: |
|
|
Yes, I've been doing just that myself for years. _________________ The Tech Pro
www.tech-pro.net |
|
| Back to top |
|
 |
Serge Professional Member


Joined: 04 Mar 2002 Posts: 1480 Location: Australia
|
Posted: Sat Jan 24, 2004 12:58 am Post subject: |
|
|
good that you confirmed it for me jules...is it a vds problem in that it does not display ico bitmaps properly or is it an ico problem that other programming languages also have a problem with?
serge _________________
|
|
| Back to top |
|
 |
jules Professional Member


Joined: 14 Sep 2001 Posts: 1043 Location: Cumbria, UK
|
Posted: Sat Jan 24, 2004 9:21 am Post subject: |
|
|
Transparent bitmaps as such don't exist in Windows, and the facility has not been implemented in Delphi, therefore VDS does not have it. Icons can have transparency because they contain two bitmaps, one the picture, the other a mask. A transparent bitmap would have to be implemented using special code to draw the bitmap, using one color to indicate the transparent area. This could be done either by using a pixel at one corner of the bitmap (which is how the bitmaps in the BIT... dialog elements are used) or by getting the user to specify the transparent color. So it would not be impossible for VDS to have transparent bitmaps, it's just that nobody thought about adding the capability at the time. _________________ The Tech Pro
www.tech-pro.net |
|
| Back to top |
|
 |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Sat Jan 24, 2004 12:52 pm Post subject: |
|
|
Actually the TRANSPARENT style works for bitmaps if you apply the
INVISIBLE style to the dialog.  _________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
| Back to top |
|
 |
PGWARE Web Host

Joined: 29 Dec 2001 Posts: 1566
|
Posted: Sat Jan 24, 2004 6:14 pm Post subject: |
|
|
| Quote: |
and the facility has not been implemented in Delphi
|
Do you mean the version of Delphi that vds uses? I've used Delphi 3, 5, 6 and 7 and all of which have a transparent property for TImage. |
|
| Back to top |
|
 |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Sat Jan 24, 2004 8:19 pm Post subject: |
|
|
I think the VDS runtime is compiled in Delphi 2.  _________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
| Back to top |
|
 |
Skit3000 Admin Team

Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
|
| Back to top |
|
 |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Sat Jan 24, 2004 8:23 pm Post subject: |
|
|
Perhaps, but I thought the IDE was just compiled in VDS 5. _________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
| Back to top |
|
 |
Skit3000 Admin Team

Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
|
| Back to top |
|
 |
Serge Professional Member


Joined: 04 Mar 2002 Posts: 1480 Location: Australia
|
Posted: Sun Jan 25, 2004 12:22 am Post subject: |
|
|
thanks for your reply, jules...i was more after an explanation why we have to design ico files only for the top left 1/4 of a 32x32 ico file in order to have it displayed properly in vds as a 16x16 ico bitmap
serge _________________
|
|
| Back to top |
|
 |
CodeScript Moderator Team

Joined: 08 Jun 2003 Posts: 1060 Location: India
|
Posted: Sun Jan 25, 2004 2:03 am Post subject: |
|
|
But having transparency for bitmaps on Normal Dialogs may look nice
It shows real transparent bitmaps meaning that you can see the dialog background/text through the transparent area(s).
As for displaying icons of various sizes and even ability to resize them(zoom) or use flicker free animations form a series of icons, variable size aniicons I was on a DSU but the work has been left half way  _________________ Regards
- CodeScript
Give your application a professional look with the VDSGUI Extension |
|
| Back to top |
|
 |
|