You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: py5_docs/Reference/api_en/Py5Graphics_copy.txt
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -28,3 +28,5 @@ Copies a region of pixels from the `Py5Graphics` object to another area of the c
28
28
This function ignores [](py5graphics_image_mode).
29
29
30
30
This method is the same as [](sketch_copy) but linked to a `Py5Graphics` object. To see example code for how it can be used, see [](sketch_copy).
31
+
32
+
If you want to create a new image with the contents of a rectangular region of a `Py5Graphics` object, check out the [](py5graphics_get_pixels) method, where x, y, w, h, are the position and dimensions of the area to be copied. It will return a `Py5Image object`.
0 commit comments