mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
Changes for pixel reference for density
This commit is contained in:
@@ -281,6 +281,9 @@ public class PApplet implements PConstants {
|
||||
* @see PApplet#get(int, int, int, int)
|
||||
* @see PApplet#set(int, int, int)
|
||||
* @see PImage
|
||||
* @see PApplet#pixelDensity()
|
||||
* @see PApplet#pixelWidth
|
||||
* @see PApplet#pixelHeight
|
||||
*/
|
||||
public int[] pixels;
|
||||
|
||||
@@ -1210,7 +1213,8 @@ public class PApplet implements PConstants {
|
||||
/**
|
||||
* @webref environment
|
||||
* @param density 1 or 2
|
||||
*
|
||||
* @see PApplet#pixelWidth
|
||||
* @see PApplet#pixelHeight
|
||||
*/
|
||||
public void pixelDensity(int density) {
|
||||
//println(density + " " + this.pixelDensity);
|
||||
|
||||
@@ -90,7 +90,7 @@ public class PImage implements PConstants, Cloneable {
|
||||
*
|
||||
* @webref image:pixels
|
||||
* @usage web_application
|
||||
* @brief Array containing the color of every pixel in the image
|
||||
* @brief Array containing the color of every pixel in the image
|
||||
*/
|
||||
public int[] pixels;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user