Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to avoid flicker when changing pictures in image con
Message
From
13/07/2010 22:53:06
 
 
To
13/07/2010 06:10:37
John Ryan
Captain-Cooker Appreciation Society
Taumata Whakatangi ..., New Zealand
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01472113
Message ID:
01472447
Views:
82
> I did not know that you can also make BMPs transparent by painting those areas as white.
>
>You can also set background transparency using a monochrome .msk file included in your project with the same filename and in the same folder as the bmp. This allows you to retain opacity for some or all of the white in your bmp. It's not well covered in VFP Help, but there's quite good info if you google "vfp msk".


Hi John

Using a MSK will work but the current easier way is to make the background RGB(255,255,255) to make it transparent and to make the "WHITE" parts of your image that you want to remain white as RGB(254,254,254) which is indistinguishable from white to the human eye, but not to VFP.

Cesar has created a program that, using GDI+X will do this automatically for all your images so you don't need a .MSK file in addition.

http://weblogs.foxite.com/vfpimaging/archive/2008/12/15/7441.aspx

BErnard
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform