forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Bitmap Transparency
Goto page 1, 2  Next
 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
CodeScript
Moderator Team


Joined: 08 Jun 2003
Posts: 1060
Location: India

PostPosted: Fri Jan 23, 2004 7:58 am    Post subject: Bitmap Transparency Reply with quote

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
Arrow Give your application a professional look with the VDSGUI Extension
Back to top
View user's profile Send private message Visit poster's website
Vic D'Elfant
Past Contributor
Past Contributor


Joined: 26 Jun 2002
Posts: 673
Location: The Netherlands

PostPosted: Fri Jan 23, 2004 9:28 am    Post subject: Reply with quote

I though that TRANSPARENT bitmap style would work with all dialog styles.. Confused

Vic

_________________
phpBB Development Team
Back to top
View user's profile Send private message Visit poster's website
jules
Professional Member
Professional Member


Joined: 14 Sep 2001
Posts: 1043
Location: Cumbria, UK

PostPosted: Fri Jan 23, 2004 11:33 am    Post subject: Reply with quote

Vic wrote:
I though that TRANSPARENT bitmap style would work with all dialog styles.. Confused


It probably would if VDS bitmaps had a transparent style.

_________________
The Tech Pro
www.tech-pro.net
Back to top
View user's profile Send private message Visit poster's website
Serge
Professional Member
Professional Member


Joined: 04 Mar 2002
Posts: 1480
Location: Australia

PostPosted: Fri Jan 23, 2004 12:36 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website MSN Messenger
jules
Professional Member
Professional Member


Joined: 14 Sep 2001
Posts: 1043
Location: Cumbria, UK

PostPosted: Fri Jan 23, 2004 2:06 pm    Post subject: Reply with quote

Yes, I've been doing just that myself for years.
_________________
The Tech Pro
www.tech-pro.net
Back to top
View user's profile Send private message Visit poster's website
Serge
Professional Member
Professional Member


Joined: 04 Mar 2002
Posts: 1480
Location: Australia

PostPosted: Sat Jan 24, 2004 12:58 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website MSN Messenger
jules
Professional Member
Professional Member


Joined: 14 Sep 2001
Posts: 1043
Location: Cumbria, UK

PostPosted: Sat Jan 24, 2004 9:21 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Sat Jan 24, 2004 12:52 pm    Post subject: Reply with quote

Actually the TRANSPARENT style works for bitmaps if you apply the
INVISIBLE style to the dialog. Smile

_________________
FreezingFire
VDSWORLD.com
Site Admin Team
Back to top
View user's profile Send private message Visit poster's website
PGWARE
Web Host


Joined: 29 Dec 2001
Posts: 1566

PostPosted: Sat Jan 24, 2004 6:14 pm    Post subject: Reply with quote

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
View user's profile Send private message
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Sat Jan 24, 2004 8:19 pm    Post subject: Reply with quote

I think the VDS runtime is compiled in Delphi 2. Smile
_________________
FreezingFire
VDSWORLD.com
Site Admin Team
Back to top
View user's profile Send private message Visit poster's website
Skit3000
Admin Team


Joined: 11 May 2002
Posts: 2166
Location: The Netherlands

PostPosted: Sat Jan 24, 2004 8:22 pm    Post subject: Reply with quote

I believe VDS 5 was compiled in a later version of Delphi...
_________________
[ Add autocomplete functionality to your VDS IDE windows! ]
Voor Nederlandse beginners met VDS: bekijk ook eens deze tutorial!
Back to top
View user's profile Send private message
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Sat Jan 24, 2004 8:23 pm    Post subject: Reply with quote

Perhaps, but I thought the IDE was just compiled in VDS 5.
_________________
FreezingFire
VDSWORLD.com
Site Admin Team
Back to top
View user's profile Send private message Visit poster's website
Skit3000
Admin Team


Joined: 11 May 2002
Posts: 2166
Location: The Netherlands

PostPosted: Sat Jan 24, 2004 8:24 pm    Post subject: Reply with quote

FreezingFire wrote:
Perhaps, but I thought the IDE was just compiled in VDS 5.


I wish it had been... Wink

_________________
[ Add autocomplete functionality to your VDS IDE windows! ]
Voor Nederlandse beginners met VDS: bekijk ook eens deze tutorial!
Back to top
View user's profile Send private message
Serge
Professional Member
Professional Member


Joined: 04 Mar 2002
Posts: 1480
Location: Australia

PostPosted: Sun Jan 25, 2004 12:22 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website MSN Messenger
CodeScript
Moderator Team


Joined: 08 Jun 2003
Posts: 1060
Location: India

PostPosted: Sun Jan 25, 2004 2:03 am    Post subject: Reply with quote

But having transparency for bitmaps on Normal Dialogs may look nice Smile


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 Sad

_________________
Regards
- CodeScript
Arrow Give your application a professional look with the VDSGUI Extension
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group