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.drawImage()

Name

CRC.drawImage() — zeichnet ein Bild

Überblick

void drawImage(image, float dx, float dy)
void drawImage(image, float dx, float dy,
               float dw, float dh)
void drawImage(image, float sx, float sy,
               float sw, float sh,
               float dx, float dy,
               float dw, float dh)

Argumente

image

Das zu zeichnende Bild. Es sollte ein Dokumentelement sein, das ein <img>-, <canvas>- oder <video>-Tag repräsentiert. Sie können auch Bilder nutzen, die im Hintergrund mit dem Image()-Konstruktor erstellt wurden.

dx, dy

Der Punkt auf dem Ziel-Canvas, an dem die linke obere Ecke des Bilds gezeichnet wird.


  

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


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint