Bufferedimage which type
Which image type should we use if we just want to create an opaque image a transparent image a translucent image I read the description in the Java Doc many times, but just couldn't figure out how should we use it. Improve this question. Mogsdad What's a translucent image? How is it different to a transparent image? AndyTurner I remember I read it somewhere about making parts of the image transparent while translucent is on the adjusting the opacity of the whole image.
For example, a gif file allows transparency but not translucency, while png files supports both. This is an example where one may need to use a different image type. Add a comment. Active Oldest Votes. Improve this answer.
Jack Jack k 27 27 gold badges silver badges bronze badges. Yes, a translucent image is not translucent per se unless all pixels have alpha. You can obtain translucency by drawing the image with alpha blending over the destination framebuffer. And so long the image type has support for alpha channel, it will be able to support transparency am I right to say that? This is my last question! Sign up or log in Sign up using Google.
Sign up using Facebook. Model Python. Example 1. Show file. File: AnimatedGifEncoder. Example 2. File: BaseXImages. Example 3. File: ImageUtils. Read JavaDoc. Please verify your params! Example 4. File: LeastSignificantBit.
Example 5. File: StdDraw. Example 6. File: JackPanel. Example 7. File: QTVideoRecorder. Labels bug imported invalid Priority-Low. Copy link. I have the following flow: Load bufferedimage from bytes Copy line-by-line bytes from BufferedImage to. Owner Author. I agree that this is not an issue google code cannot let me raise a question here. I'm trying to add alpha channel for non-alpha. So please close this issue. Sign up for free to join this conversation on GitHub. Already have an account?
Sign in to comment. Linked pull requests. You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window.
0コメント