FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Uwe we need your help :-)
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Uwe we need your help :-)
Posted: Tue Dec 30, 2014 05:35 PM

We need our painting Master help here :-)

viewtopic.php?f=6t=29891start=0

&&

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM
Re: Uwe we need your help :-)
Posted: Tue Dec 30, 2014 07:02 PM
Antonio,
as far I understand ( spanish ), the image is stored inside a resource ?
The problem :
You need a alphachannel-Image ( 32bbp ), to get clean borders.
It means, the used Resource-editor MUST support this format,
otherwise the quality is very bad.
I hope I understand the problem ?
What resource-editor You are using ?

Only a alphachannel-Image ( 32bbp ) shows a clean border.
A long time ago, I bought a resource editor ( never updated ), that supports this format.
I have to check the update-infos what is new.



Tested 30 days trial ( 32bbp is supported ) :

32bbpimage loaded :



The generated RC-file :



best regards
Uwe :-)
Since 1995 ( the first release of FW 1.9 )

i work with FW.

If you have any questions about special functions, maybe i can help.
Posts: 2706
Joined: Fri Oct 07, 2005 01:50 PM
Re: Uwe we need your help :-)
Posted: Tue Dec 30, 2014 09:00 PM

Uwe

If you use 32 bit bitmaps they will not compile into your .exe via .rc .. at least not with Borland. The only way I get alpha channel bitmaps to burn into my .exe is to save as 24 bit in my .rc or reference the 32 bit bitmap as a ( external ) file.

Rick Lipkin

Posts: 555
Joined: Wed Jul 31, 2013 01:14 PM
Re: Uwe we need your help :-)
Posted: Tue Dec 30, 2014 10:44 PM

Pelles C can do it.

I save bmp alpha channel with Pixelformer.
png to bmp alpha channel. and include it in .res with Pelles C.
My be could help you.

Sorry for my English.

Best regards.
Saludos.
Ruben Dario Fernandez.

Dario Fernandez

FWH 2501, Harbour, MVS2022 Community, MySql & MariaDB, Dbf/Cdx VSCode.

Maldonado - Uruguay
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Re: Uwe we need your help :-)
Posted: Wed Dec 31, 2014 11:24 AM
Rick,

Rick Lipkin wrote:If you use 32 bit bitmaps they will not compile into your .exe via .rc .. at least not with Borland. The only way I get alpha channel bitmaps to burn into my .exe is to save as 24 bit in my .rc or reference the 32 bit bitmap as a ( external ) file.


Can you send me a 32 bit bitmap to test it here with Borland, please?

EMG
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: Uwe we need your help :-)
Posted: Wed Dec 31, 2014 01:04 PM

Dear Uwe,

Please review this:

viewtopic.php?p=169910#p169910

thanks! :-)

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 2706
Joined: Fri Oct 07, 2005 01:50 PM
Re: Uwe we need your help :-)
Posted: Wed Dec 31, 2014 02:54 PM
Enrico

I just sent you a 24 bit and a 32 bit alpha chanel bitmaps. Let me know if you have the same results. For me the Borland rc compiler ( both 5.5 and 5.82 ) will not compile the 32 bit but will the 24 bit will. Here is my modified batch file to create the .res

Code (fw): Select all Collapse
@Echo Off
rem RC file to 32 bits resources DLL
rem syntax: rc2dll32.bat Your_rc_file  !!! without the .RC extension

DEL SaW32.DLL
DEL SaW32.RC
DEL SaW32.RES

COPY *.RC SaW32.RC

C:\BORLAND\BCC582\BIN\brc32 -r %1.rc


del *.iL?
del *.map
del *.obj
del *.~rc
del *.rws
:del *.res
del *.tds
echo done!


Rick Lipkin
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: Uwe we need your help :-)
Posted: Wed Dec 31, 2014 03:34 PM
test.prg
Code (fw): Select all Collapse
#include "fivewin.ch"

function Main()

   local oDlg, oFont, oImage
   local cName := PadR( "FiveWin", 50 )

   DEFINE FONT oFont NAME "TAHOMA" SIZE 0,-16 BOLD
   DEFINE DIALOG oDlg SIZE 400,350 PIXEL FONT oFont STYLE  WS_POPUP

   @ 20,68 IMAGE oImage FILE "c:\fwh\bitmaps\AlphaBmp\trash.bmp" SIZE 64,64 PIXEL OF oDlg NOBORDER
   @ 100,00 SAY "TRANSPARENT DIALOG" SIZE 200,12 PIXEL OF oDlg COLOR CLR_BLACK,CLR_WHITE CENTERED
   @ 112,00 SAY "Enter Your Name:" SIZE 200,12 PIXEL OF oDlg COLOR CLR_BLACK,CLR_WHITE CENTERED
   @ 130,10 GET cName SIZE 180,16 PIXEL OF oDlg
   @ 150,60 BUTTON "Close" SIZE 80,20 PIXEL OF oDlg ACTION oDlg:End()

   oDlg:nSeeThroClr  := oDlg:nClrPane

   ACTIVATE DIALOG oDlg CENTERED
   RELEASE FONT oFont

return nil




The background image is my desktop.
Regards



G. N. Rao.

Hyderabad, India
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Re: Uwe we need your help :-)
Posted: Wed Dec 31, 2014 04:01 PM
Rick,

Rick Lipkin wrote:I just sent you a 24 bit and a 32 bit alpha chanel bitmaps. Let me know if you have the same results.


Yes. It looks like brc32 is not compatible with 32 bit bitmaps. And unfortunately it hasn't been updated even in the latest BCC 6.90 (it's the same version 5.40). :-)

EMG
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: Uwe we need your help :-)
Posted: Wed Dec 31, 2014 04:03 PM
Enrico Maria Giordano wrote:Rick,

Rick Lipkin wrote:I just sent you a 24 bit and a 32 bit alpha chanel bitmaps. Let me know if you have the same results.


Yes. It looks like brc32 is not compatible with 32 bit bitmaps. And unfortunately it hasn't been updated even in the latest BCC 6.90 (it's the same version 5.40). :-)

EMG

Yes.
I am using Pelles to save as res files and linking them
Regards



G. N. Rao.

Hyderabad, India
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Re: Uwe we need your help :-)
Posted: Wed Dec 31, 2014 04:22 PM
Nages,

nageswaragunupudi wrote:I am using Pelles to save as res files and linking them


We would need of a command line resource compiler...

EMG
Posts: 1516
Joined: Thu May 27, 2010 02:06 PM
Re: Uwe we need your help :-)
Posted: Wed Dec 31, 2014 04:25 PM

use rc.exe from microsoft ... 2 files -+ 500kb. ...

Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Re: Uwe we need your help :-)
Posted: Wed Dec 31, 2014 04:28 PM
mastintin wrote:use rc.exe from microsoft ... 2 files -+ 500kb. ...


Can you send me that, please? :-)

EMG
Posts: 1516
Joined: Thu May 27, 2010 02:06 PM
Re: Uwe we need your help :-)
Posted: Wed Dec 31, 2014 05:07 PM

Yes. Check email. :)

Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Re: Uwe we need your help :-)
Posted: Wed Dec 31, 2014 05:58 PM

Thank you. Unfortunately it doesn't support inline data... :-(

EMG