# Save transparent image from Geomerative

**URL:** <https://discourse.processing.org/t/save-transparent-image-from-geomerative/39132>\
**Category:** Libraries\
**Created:** [October 7, 2022, 12:57pm UTC](https://discourse.processing.org/t/save-transparent-image-from-geomerative/39132 "2022-10-07T12:57:05Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![debxyz](https://avatars.discourse-cdn.com/v4/letter/d/58956e/32.png) [@debxyz](https://discourse.processing.org/u/debxyz)\
**Post date:** [October 7, 2022, 11:51pm UTC](https://discourse.processing.org/t/save-transparent-image-from-geomerative/39132/6 "2022-10-07T23:51:50Z")

</div>

This is an interesting thread which may be of help:

> [@Transparency in save() function](https://discourse.processing.org/t/transparency-in-save-function/25699):
>
> So I made this code where you can draw and create an image. This works just fine but is it possible to get an image with a transparant background? Is there like a function to remove everything with RGB code white in a certain area? Code: float oldX; float oldY; PImage test; void setup(){ fullScreen(); background(255); rect(40, 150, 200 ,100); test = loadImage("test.jpg"); } void draw(){ if(mousePressed){ line(mouseX, mouseY, oldX, oldY); } oldX = mouseX; oldY = mouseY; if(key…

---

_[View the full topic](https://discourse.processing.org/t/save-transparent-image-from-geomerative/39132)._
