alpha bitmap in resources

alpha bitmap in resources

Postby Loach » Fri Apr 17, 2009 6:04 am

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
Loach
 
Posts: 41
Joined: Thu Dec 22, 2005 7:39 am
Location: Gomel, Belarus

Re: alpha bitmap in resources

Postby Daniel Garcia-Gil » Fri Apr 17, 2009 7:01 am

User avatar
Daniel Garcia-Gil
 
Posts: 2365
Joined: Wed Nov 02, 2005 11:46 pm
Location: Isla de Margarita

Re: alpha bitmap in resources

Postby Loach » Fri Apr 17, 2009 7:54 am

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
Loach
 
Posts: 41
Joined: Thu Dec 22, 2005 7:39 am
Location: Gomel, Belarus

Re: alpha bitmap in resources

Postby Antonio Linares » Fri Apr 17, 2009 9:06 am

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
User avatar
Antonio Linares
Site Admin
 
Posts: 41329
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: alpha bitmap in resources

Postby Loach » Fri Apr 17, 2009 9:44 am

Mr Antonio, I already tried this way, but if I make this changes in testbutn.rc:
Code: Select all  Expand view

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
Loach
 
Posts: 41
Joined: Thu Dec 22, 2005 7:39 am
Location: Gomel, Belarus

Re: alpha bitmap in resources

Postby anserkk » Fri Apr 17, 2009 12:16 pm

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
User avatar
anserkk
 
Posts: 1331
Joined: Fri Jun 13, 2008 11:04 am
Location: Kochi, India


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 25 guests