alpha bitmap in resources

Post Reply
Loach
Posts: 41
Joined: Thu Dec 22, 2005 7:39 am
Location: Gomel, Belarus

alpha bitmap in resources

Post by Loach »

Can I use alpha bmp in my "rc" file with BCC 5.5 ?
If I try to compile the sample "buildx.bat testbutn" it makes:
"Error testbutn.RC 11 15: Invalid bitmap format"
May be I do something wrong?
Best regards!
Sergey (Loach) Abelev
fwh 9.04/xHarbour 1.2.1 (Rev. 6406)/Bcc55
User avatar
Daniel Garcia-Gil
Posts: 2365
Joined: Wed Nov 02, 2005 11:46 pm
Location: Isla de Margarita
Contact:

Re: alpha bitmap in resources

Post by Daniel Garcia-Gil »

our best documentation is the source code
Isla de Margarita Venezuela.
danielgarciagil@gmail.com
http://tdolphin.blogspot.com/
https://www.dropbox.com/referrals/NTI5N ... rc=global9
Loach
Posts: 41
Joined: Thu Dec 22, 2005 7:39 am
Location: Gomel, Belarus

Re: alpha bitmap in resources

Post by Loach »

Thanks a lot Mr Daniel!
I don't know Spanish, but if I understand right, I can use alphabmp in "rc" only with Microsoft rc.exe.
Thanks again!
Best regards!
Sergey (Loach) Abelev
fwh 9.04/xHarbour 1.2.1 (Rev. 6406)/Bcc55
User avatar
Antonio Linares
Site Admin
Posts: 42644
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Has thanked: 59 times
Been thanked: 93 times
Contact:

Re: alpha bitmap in resources

Post by Antonio Linares »

Sergey,

> I can use alphabmp in "rc" only with Microsoft rc.exe

You can also use it with Borland brc32.exe if you specify ALPHABITMAP instead of BITMAP in the RC file:

button ALPHABITMAP "button.bmp"
regards, saludos

Antonio Linares
www.fivetechsoft.com
Loach
Posts: 41
Joined: Thu Dec 22, 2005 7:39 am
Location: Gomel, Belarus

Re: alpha bitmap in resources

Post by Loach »

Mr Antonio, I already tried this way, but if I make this changes in testbutn.rc:

Code: Select all | Expand


button ALPHABITMAP "../bitmaps/AlphaBmp/visa.bmp"
 

testbutn.exe builds without errors, but visa.bmp isn't paints on button...
Anyway, Thank you for help, with MC "rc.exe" everything work very well !
Best regards!
Sergey (Loach) Abelev
fwh 9.04/xHarbour 1.2.1 (Rev. 6406)/Bcc55
User avatar
anserkk
Posts: 1333
Joined: Fri Jun 13, 2008 11:04 am
Location: Kochi, India
Has thanked: 2 times

Re: alpha bitmap in resources

Post by anserkk »

testbutn.exe builds without errors, but visa.bmp isn't paints on button...
Anyway, Thank you for help, with MC "rc.exe" everything work very well !


I Agree with Mr.Loach,

If in .RC file, AlphaBmp is specified as ALPHABITMAP then Borland Resource compiler compiles Alpha BMP's without errors, but the image will not be displayed in the FWH App.

When I checked the .Res file using PellesC, it seems that the Alpha BMP is treated as unknown/other

But if I use PellesC Resource Compiler then everything is working fine.

Regards

Anser
Post Reply