Image without its background

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
User avatar
Krizzu
Prole
Posts: 20
Joined: Sun Apr 15, 2012 8:02 pm

Image without its background

Post by Krizzu »

Hello!

Let's say we got dude like him:

Image

And how can I delete or disable that pink background? Is there any way to disable/delete it in LOVE or should I use photo editor? (and which ona :crazy: )


Thanks You :)
User avatar
Petunien
Party member
Posts: 191
Joined: Fri Feb 03, 2012 8:02 pm
Location: South Tyrol (Italy)

Re: Image without its background

Post by Petunien »

I would do it with a photo editor. Change the pink pixels to transparent ones or delete them easily.
You could use Paint.NET or Gimp.

Important is that you use an image-format like *.png, that allows transparent pixels.
Do not use *.jpg as example.
"Docendo discimus" - Lucius Annaeus Seneca
User avatar
josefnpat
Inner party member
Posts: 955
Joined: Wed Oct 05, 2011 1:36 am
Location: your basement
Contact:

Re: Image without its background

Post by josefnpat »

Krizzu wrote:Hello!

Let's say we got dude like him:

Image

And how can I delete or disable that pink background? Is there any way to disable/delete it in LOVE or should I use photo editor? (and which ona :crazy: )


Thanks You :)
If you are allergic to gif or png images, you could load the data with love.image.newImageData, and then set the pink pixel's (xFF00FF == {255,0,255}) to an alpha of zero.

In all honesty, using GIMP is the way to go.
Missing Sentinel Software | Twitter

FORCIBLY IGNORED.
<leafo> when in doubt delete all of your code
<bartbes> git rm -r *
<bartbes> git commit -m "Fixed all bugs"
<bartbes> git push
User avatar
Krizzu
Prole
Posts: 20
Joined: Sun Apr 15, 2012 8:02 pm

Re: Image without its background

Post by Krizzu »

I will play with paint.net, it's pretty cool. Thanks guys, hope there are more people helpful like You.
Post Reply

Who is online

Users browsing this forum: Amazon [Bot], Bing [Bot] and 3 guests