Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

2. Canvas-Referenz > CRC.getImageData()

Name

CRC.getImageData() — ruft einzelne Pixel aus dem Canvas aborm:availability: HTML 5

Überblick

ImageData getImageData(x, y, w, h)

Argumente

x, y

Die Koordinaten einer Ecke (üblicherweise der linken oberen) eines rechteckigen Bereichs zurückzuliefernder Pixel. Diese Argumente werden nicht von der aktuellen Transformationsmatrix transformiert.

w, h

Die Breite und Höhe des Pixelrechtecks, das zurückgeliefert werden soll. Diese Argumente werden nicht von der aktuellen Transformationsmatrix transformiert. Sie sind üblicherweise positiv, aber negative Werte sind erlaubt.

Rückgabewert

Ein neu erstelltes ImageData-Objekt, das die Pixelwerte für alle Pixel im Rechteck enthält.


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial