mirror of
https://github.com/processing/processing4.git
synced 2026-02-14 02:45:36 +01:00
support additional image types from ImageIO.read(), check alpha on unknown images (fixes #3442), other notes
This commit is contained in:
@@ -2903,6 +2903,9 @@ public class PGraphicsJava2D extends PGraphics {
|
||||
if ((sourceX == 0) && (sourceY == 0) &&
|
||||
(sourceWidth == sourceImage.width) &&
|
||||
(sourceHeight == sourceImage.height)) {
|
||||
// System.out.format("%d %d %dx%d %d%n", targetX, targetY,
|
||||
// sourceImage.width, sourceImage.height,
|
||||
// sourceImage.pixels.length);
|
||||
raster.setDataElements(targetX, targetY,
|
||||
sourceImage.width, sourceImage.height,
|
||||
sourceImage.pixels);
|
||||
|
||||
Reference in New Issue
Block a user