Uwe we need your help :-)

Uwe we need your help :-)

Postby Antonio Linares » Tue Dec 30, 2014 5:35 pm

We need our painting Master help here :-)

viewtopic.php?f=6&t=29891&start=0
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42048
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Uwe we need your help :-)

Postby ukoenig » Tue Dec 30, 2014 7: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.

Image

Tested 30 days trial ( 32bbp is supported ) :

32bbpimage loaded :

Image

The generated RC-file :

Image

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.
User avatar
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany

Re: Uwe we need your help :-)

Postby Rick Lipkin » Tue Dec 30, 2014 9: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
User avatar
Rick Lipkin
 
Posts: 2662
Joined: Fri Oct 07, 2005 1:50 pm
Location: Columbia, South Carolina USA

Re: Uwe we need your help :-)

Postby D.Fernandez » 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 24.09, Harbour, MVS2022 Community, BCC, MySql & MariaDB, Dbf/Cdx VSCode.
Maldonado - Uruguay
D.Fernandez
 
Posts: 461
Joined: Wed Jul 31, 2013 1:14 pm
Location: Maldonado - Uruguay

Re: Uwe we need your help :-)

Postby Enrico Maria Giordano » 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
User avatar
Enrico Maria Giordano
 
Posts: 8696
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: Uwe we need your help :-)

Postby Antonio Linares » Wed Dec 31, 2014 1:04 pm

Dear Uwe,

Please review this:

viewtopic.php?p=169910#p169910

thanks! :-)
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42048
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Uwe we need your help :-)

Postby Rick Lipkin » Wed Dec 31, 2014 2: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: Select all  Expand view

@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
User avatar
Rick Lipkin
 
Posts: 2662
Joined: Fri Oct 07, 2005 1:50 pm
Location: Columbia, South Carolina USA

Re: Uwe we need your help :-)

Postby nageswaragunupudi » Wed Dec 31, 2014 3:34 pm

test.prg
Code: Select all  Expand view
#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
 


Image

The background image is my desktop.
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10595
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: Uwe we need your help :-)

Postby Enrico Maria Giordano » Wed Dec 31, 2014 4: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
User avatar
Enrico Maria Giordano
 
Posts: 8696
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: Uwe we need your help :-)

Postby nageswaragunupudi » Wed Dec 31, 2014 4: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
User avatar
nageswaragunupudi
 
Posts: 10595
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: Uwe we need your help :-)

Postby Enrico Maria Giordano » Wed Dec 31, 2014 4: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
User avatar
Enrico Maria Giordano
 
Posts: 8696
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: Uwe we need your help :-)

Postby mastintin » Wed Dec 31, 2014 4:25 pm

use rc.exe from microsoft ... 2 files -+ 500kb. ...
User avatar
mastintin
 
Posts: 1516
Joined: Thu May 27, 2010 2:06 pm

Re: Uwe we need your help :-)

Postby Enrico Maria Giordano » Wed Dec 31, 2014 4:28 pm

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


Can you send me that, please? :-)

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8696
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: Uwe we need your help :-)

Postby mastintin » Wed Dec 31, 2014 5:07 pm

Yes. Check email. :)
User avatar
mastintin
 
Posts: 1516
Joined: Thu May 27, 2010 2:06 pm

Re: Uwe we need your help :-)

Postby Enrico Maria Giordano » Wed Dec 31, 2014 5:58 pm

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

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8696
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Next

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 27 guests