| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent efb74dc commit f8d77c8
4 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -253,6 +253,16 @@ public PSurface createSurface() { | |||
| 253 | 253 | } | |
| 254 | 254 | ||
| 255 | 255 | ||
| 256 | + /** | ||
| 257 | + * Still need a means to get the java.awt.Image object, since getNative() | ||
| 258 | + * is going to return the {@link Graphics2D} object. | ||
| 259 | + */ | ||
| 260 | + @Override | ||
| 261 | + public Image getImage() { | ||
| 262 | + return image; | ||
| 263 | + } | ||
| 264 | + | ||
| 265 | + | ||
| 256 | 266 | /** Returns the java.awt.Graphics2D object used by this renderer. */ | |
| 257 | 267 | @Override | |
| 258 | 268 | public Object getNative() { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -345,8 +345,8 @@ public PImage(Image img) { | |||
| 345 | 345 | /** | |
| 346 | 346 | * Use the getNative() method instead, which allows library interfaces to be | |
| 347 | 347 | * written in a cross-platform fashion for desktop, Android, and others. | |
| 348 | + * This is still included for PGraphics objects, which may need the image. | ||
| 348 | 349 | */ | |
| 349 | - @Deprecated | ||
| 350 | 350 | public Image getImage() { // ignore | |
| 351 | 351 | return (Image) getNative(); | |
| 352 | 352 | } | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -2,6 +2,7 @@ | |||
| 2 | 2 | X some Table cleanup based on other CSV parsing work | |
| 3 | 3 | X use StandardCharsets.UTF_8 instead of getting encoding by name | |
| 4 | 4 | X PApplet.main(Blah.class) now works | |
| 5 | + o add push() and pop() methods to mirror js? | ||
| 5 | 6 | X add toJSON() method to IntDict | |
| 6 | 7 | X had to use JSONObject.quote() to wrap the text | |
| 7 | 8 | _ do the same for the other data classes | |
@@ -19,7 +20,7 @@ X https://github.com/processing/processing/issues/4265 | |||
| 19 | 20 | X https://github.com/processing/processing/pull/4268 | |
| 20 | 21 | ||
| 21 | 22 | ||
| 22 | - _ disable OpenGL ES on Linux? | ||
| 23 | + _ option to disable OpenGL ES on Linux? | ||
| 23 | 24 | _ https://github.com/processing/processing/issues/4584 | |
| 24 | 25 | ||
| 25 | 26 | _ Can't render PGraphics object using image() within a PDF | |
@@ -33,10 +34,6 @@ _ textAlign(CENTER) and pixelDensity(2) aligning incorrectly with Java2D | |||
| 33 | 34 | _ https://github.com/processing/processing/issues/4020 | |
| 34 | 35 | _ add increment() that takes IntDict to merge things | |
| 35 | 36 | ||
| 36 | - _ normalize error messages for missing files | ||
| 37 | - _ https://github.com/processing/processing/issues/4265 | ||
| 38 | - _ https://github.com/processing/processing/pull/4268 | ||
| 39 | - | ||
| 40 | 37 | _ should fullScreen() set width and height to displayWidth/Height | |
| 41 | 38 | _ or is that being set/unset used for any state info? | |
| 42 | 39 | _ when calling exit(), if sketch has halted w/ exception, force the quit | |
@@ -45,7 +42,6 @@ _ simple test case: using size() inside setup() from Eclipse | |||
| 45 | 42 | ||
| 46 | 43 | ||
| 47 | 44 | discussion | |
| 48 | - _ add push() and pop() methods to mirror js? | ||
| 49 | 45 | _ how to handle the touch api | |
| 50 | 46 | _ figure our size(img.width, img.height) situation | |
| 51 | 47 | _ just make loadImage() work in settings | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -423,7 +423,7 @@ protected void imageImpl(PImage image, | |||
| 423 | 423 | scale((x2 - x1) / imageWidth, | |
| 424 | 424 | (y2 - y1) / imageHeight); | |
| 425 | 425 | if (u2-u1 == imageWidth && v2-v1 == imageHeight) { | |
| 426 | - g2.drawImage((Image) image.getNative(), 0, 0, null); | ||
| 426 | + g2.drawImage(image.getImage(), 0, 0, null); | ||
| 427 | 427 | } else { | |
| 428 | 428 | PImage tmp = image.get(u1, v1, u2-u1, v2-v1); | |
| 429 | 429 | g2.drawImage((Image) tmp.getNative(), 0, 0, null); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments