#PNG with white background but 0 alpha

1 messages · Page 1 of 1 (latest)

cursive wyvern
#

Is it possible to create a png with a white background but 0 as the alpha value?
Other pixels can have an alpha value greater than 0.

potent wraithBOT
#

This post has been reserved for your question.

Hey @cursive wyvern! Please use /close or the Close Post button above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.

TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.

cursive wyvern
#

I already tried g.fillRect with setColor as 1f 1f 1f 0f

#

but that creates an image with 0 0 0 0 rgba as background

#

maybe it's a compression thing?

fierce sandal
# cursive wyvern I already tried g.fillRect with setColor as 1f 1f 1f 0f

Draw routines are going to account for the transluency, and especially in your case transparency, of what you're trying to draw, as the result is supposed to be one layer as the resulting image.

If you want to try such a thing you're going to have to modify pixel values rather than drawing on the image.

cursive wyvern
#

are you talking about buffered image's setRGB method?

#

because I also tried that

#

but before I do my regular drawing procedures

#

would it make a difference if I did it after my regular drawing procedures?

fierce sandal
#

Hmm I'm not sure

#

Normally, drawing something that's fully transparent is just something you should consider as useless to do

cursive wyvern
#

I need it though

fierce sandal
#

In principle drawing something transparent is equivalent to not doing anything.
So it seems you're saying that you require a step that does nothing;

cursive wyvern
#

not if you interpret rgba data differently

fierce sandal
#

Oh right. Fill and stroke offer different composition options, right?

cursive wyvern
#

yeah

fierce sandal
#

And you've opted out of mentioning your composition of choice, because?

cursive wyvern
#

I mentioned fillRect

#

the only 'real' drawing I need to perform is drawString

#

I am creating a bitmap for textrendering btw

#

the background needs to have a white rgb value so I don't need to switch textures for rendering anyrhing other than text

potent wraithBOT
#

💤 Post marked as dormant

This post has been inactive for over 300 minutes, thus, it has been archived.
If your question was not answered yet, feel free to re-open this post or create a new one.
In case your post is not getting any attention, you can try to use /help ping.
Warning: abusing this will result in moderative actions taken against you.

cursive wyvern
fierce sandal
# cursive wyvern I mentioned fillRect

You mentioned fillRect but not the composition you used. I literally mentioned it's the composition that may matter. And you still have not explained what's the composition you use nor why.