Giter Site home page Giter Site logo

Comments (7)

burhanrashid52 avatar burhanrashid52 commented on May 10, 2024

Black color in the border or black color in image background?

from photoeditor.

yooneskh avatar yooneskh commented on May 10, 2024

the one in the background

from photoeditor.

Sulfkain avatar Sulfkain commented on May 10, 2024

@yooneskh I have yet achieve this.
It's really simple, I put my code.:

val bitmapEmpty = Bitmap.createBitmap(bitmap.width, bitmap.height, Bitmap.Config.ARGB_8888)
photoEditor.source.setImageBitmap(bitmapEmpty)

Then save as usual.
You will get a PNG file with transparent background.

The important, is to get the correct width and height to achieve the same size as your final result.
Keep in mind that on phone / emulator that file shows with white / black background but if you open with another editor image program you will see it's transparent.

I hope this helps you ;)

from photoeditor.

yooneskh avatar yooneskh commented on May 10, 2024

from photoeditor.

burhanrashid52 avatar burhanrashid52 commented on May 10, 2024

If you have resolved the issue then please post your solution and close the issue. It will really help other developers. @yooneskh

from photoeditor.

Sulfkain avatar Sulfkain commented on May 10, 2024

@burhanrashid52 Anyway, there is some way to save the transparent layer with the current size, without the removeTransparency?
I know that removeTransparency it's for performance but i need the full size
Thank's, great lib!!

from photoeditor.

burhanrashid52 avatar burhanrashid52 commented on May 10, 2024

Now you can set options while saving the image.
Resolved in v.0.3.2
For more details check Saving Wiki

from photoeditor.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.