FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour alpha creation
Posts: 3107
Joined: Fri Oct 07, 2005 06:28 PM
alpha creation
Posted: Wed Feb 04, 2009 11:27 PM

I have a jpg file and I want create a alpha image
How I can make to create it ?
is there an freeware to download ?

Best Regards, Saludos



Falconi Silvio
Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM
Re: alpha creation
Posted: Thu Feb 05, 2009 12:50 AM

Hello Silvio,

You can use GIMP or xNVIEW to convert any format.
I prefer xNVIEW because it is better to handle.

http://www.xnview.com/

Just something to remind :
only converting a JPG to BMP, You don't get any transparent-areas,
because of the missing layers.

Regards
Uwe :lol:

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: 3107
Joined: Fri Oct 07, 2005 06:28 PM
Re: alpha creation
Posted: Thu Feb 05, 2009 08:54 AM

I run xnview but I not found the command to converte on alpha

Best Regards, Saludos



Falconi Silvio
Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM
Re: alpha creation
Posted: Thu Feb 05, 2009 11:59 AM
Hello Sylvio,

There is no extra save to < Alpha-Blended-BMP > needed.
As I told You, a PNG or ICO - file contains Transparent-areas.
The Transparent-area is a extra layer.
The program converts automaticly the transparent-area to BLACK
when saving as BMP.
For JPG, You have to convert as first to ==> PNG
JPG => to PNG => to BMP.
No application offers a straight convert from JPG to AlphaBlended-BMP's

There is sill another program ( Trial-version, commercial )
( But You can do the same with XNVIEW )

http://www.imageconverterplus.com/download/







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: 3107
Joined: Fri Oct 07, 2005 06:28 PM
Re: alpha creation
Posted: Thu Feb 05, 2009 01:31 PM

please see your email

Best Regards, Saludos



Falconi Silvio
Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM
Re: alpha creation
Posted: Thu Feb 05, 2009 02:20 PM
Hello Silvio,

I got Your E-mail.

I changed the WHITE-transparent-aerea of YOUR PNG-file to BLACK !!!,
saved it as BMP and added it on top of my background-image.
( It is a little bit transparent itself. )
Because it is a Alphablended-BMP now, You can use it as a Splash-Logo as well.

If You like, I can push it to a higher level.
With the resizing of a small Image, You loose a lot of quality.
In my collection, I have this kind of images in sizes of 255 x 255 pixel.
There could be also a shadow around the figure and text.
I can send You some styles by E-Mail if You want to change it.
( Type2.png or Kuser.png looks quite good ).

ABPaint( hDC, 20, 20, oBmp:hBitmap, 220 )



A few images ( Hight quality 255 x 255 ) :






If You want to have a look at other very good Graphic-applications :

http://www.icofx.ro/

http://www.gimp.org/

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: 3107
Joined: Fri Oct 07, 2005 06:28 PM
Re: alpha creation
Posted: Fri Feb 06, 2009 10:36 AM

Uwe,
U sad me to use XNview and I downloaded but with it I cannot create it
I used also icofx and gimpy but I cannot create it
why u jokes with me ?

Best Regards, Saludos



Falconi Silvio
Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM
Re: alpha creation
Posted: Fri Feb 06, 2009 11:52 AM
Hello Silvio,

I used these applications and got fine results.
I will show on this place step by step with screenshots what to do.

Another sample using type2.png from above :


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: 3107
Joined: Fri Oct 07, 2005 06:28 PM
Re: alpha creation
Posted: Fri Feb 06, 2009 04:27 PM
I'm trying with xnview


wich menu and command I must press?
Best Regards, Saludos



Falconi Silvio
Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM
Re: alpha creation
Posted: Fri Feb 06, 2009 05:53 PM

Hello Silvio,

I will put the solution step by step in my new post :

Create Alpha-Bl.-BMP with different Applications

viewtopic.php?f=3t=14508

There are still some descriptions ( solutions ) to add.
Normally what You have to do is first ( I see, Your file is a normal BMP ),
save it as PNG-File to define the transparent-areas.
After open the new PNG, You have to choose the color, You want to show transparent
( it is WHITE in Your BMP ).
After You defined the transparent color, You can save it as BMP.
I couldn't find the fill-option for PNG's in XNVIEW ( no information in Help-file ),
to replace a color with a tranparent-area.
In GIMP, it is included ( see my new post Convert JPG to Alpha-Blended BMP )
The best solution ( better quality ) is allways, to use a original painted PNG-file.

Regards
Uwe :lol:

&

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: 4043
Joined: Wed Dec 19, 2007 06:40 PM
Re: alpha creation
Posted: Wed Feb 11, 2009 03:20 PM
Hello Silvio,

I will send You the files, You asked for.
There is the PNG and AlphaBlended BMP

The Result



DEFINE BITMAP oBmp FILENAME "silvio.bmp"
ACTIVATE WINDOW oWnd MAXIMIZED ;
ON PAINT ABPaint( hDC, 20, 20, oBmp:hBitmap, 220 )


The Working-File :
1. : saving the < BMP, JPG ... > as < PNG > ( Now You can work with Layers )
2. : define the Background-Color, You want change to TRANSPARENT.
3. : saving the < PNG > as < BMP >, replaces the TRANSPARENT-Background with BLACK
and You get a Alphablended BMP with Transparent-Areas.



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.

Continue the discussion