Page 1 of 1

alpha bitmap in resources

Posted: Fri Apr 17, 2009 6:04 am
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?

Re: alpha bitmap in resources

Posted: Fri Apr 17, 2009 7:01 am
by Daniel Garcia-Gil

Re: alpha bitmap in resources

Posted: Fri Apr 17, 2009 7:54 am
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!

Re: alpha bitmap in resources

Posted: Fri Apr 17, 2009 9:06 am
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"

Re: alpha bitmap in resources

Posted: Fri Apr 17, 2009 9:44 am
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 !

Re: alpha bitmap in resources

Posted: Fri Apr 17, 2009 12:16 pm
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