alpha creation

alpha creation

Postby Silvio » 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
User avatar
Silvio
 
Posts: 3107
Joined: Fri Oct 07, 2005 6:28 pm
Location: Teramo,Italy

Re: alpha creation

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

Re: alpha creation

Postby Silvio » Thu Feb 05, 2009 8:54 am

I run xnview but I not found the command to converte on alpha
Best Regards, Saludos

Falconi Silvio
User avatar
Silvio
 
Posts: 3107
Joined: Fri Oct 07, 2005 6:28 pm
Location: Teramo,Italy

Re: alpha creation

Postby ukoenig » 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/

Image

Image

Image

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

Re: alpha creation

Postby Silvio » Thu Feb 05, 2009 1:31 pm

please see your email
Best Regards, Saludos

Falconi Silvio
User avatar
Silvio
 
Posts: 3107
Joined: Fri Oct 07, 2005 6:28 pm
Location: Teramo,Italy

Re: alpha creation

Postby ukoenig » Thu Feb 05, 2009 2: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 )

Image

A few images ( Hight quality 255 x 255 ) :
Image

Image

Image

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

http://www.icofx.ro/

http://www.gimp.org/

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

Re: alpha creation

Postby Silvio » 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
User avatar
Silvio
 
Posts: 3107
Joined: Fri Oct 07, 2005 6:28 pm
Location: Teramo,Italy

Re: alpha creation

Postby ukoenig » 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 :
Image

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

Re: alpha creation

Postby Silvio » Fri Feb 06, 2009 4:27 pm

I'm trying with xnview
Image

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

Falconi Silvio
User avatar
Silvio
 
Posts: 3107
Joined: Fri Oct 07, 2005 6:28 pm
Location: Teramo,Italy

Re: alpha creation

Postby ukoenig » Fri Feb 06, 2009 5: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=3&t=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.
User avatar
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany

Re: alpha creation

Postby ukoenig » Wed Feb 11, 2009 3:20 pm

Hello Silvio,

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

The Result

Image

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

Image

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


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 76 guests

cron