ICanvasRenderingContext2D.DrawImage
Contents
[
Hide
]DrawImage(HTMLImageElement, double, double)
Draws the specified image.
public void DrawImage(HTMLImageElement image, double dx, double dy)
Parameter | Type | Description |
---|---|---|
image | HTMLImageElement | The HTMLImageElement to draw into the context. |
dx | Double | The X coordinate in the destination canvas at which to place the top-left corner of the source image. |
dy | Double | The Y coordinate in the destination canvas at which to place the top-left corner of the source image. |
See Also
- class HTMLImageElement
- interface ICanvasRenderingContext2D
- package com.aspose.html.Dom.Canvas
- package Aspose.HTML
DrawImage(HTMLCanvasElement, double, double)
Draws the specified image.
public void DrawImage(HTMLCanvasElement image, double dx, double dy)
Parameter | Type | Description |
---|---|---|
image | HTMLCanvasElement | The HTMLCanvasElement to draw into the context. |
dx | Double | The X coordinate in the destination canvas at which to place the top-left corner of the source image. |
dy | Double | The Y coordinate in the destination canvas at which to place the top-left corner of the source image. |
See Also
- class HTMLCanvasElement
- interface ICanvasRenderingContext2D
- package com.aspose.html.Dom.Canvas
- package Aspose.HTML
DrawImage(HTMLImageElement, double, double, double, double)
Draws the specified image.
public void DrawImage(HTMLImageElement image, double dx, double dy, double dw, double dh)
Parameter | Type | Description |
---|---|---|
image | HTMLImageElement | The HTMLImageElement to draw into the context. |
dx | Double | The X coordinate in the destination canvas at which to place the top-left corner of the source image. |
dy | Double | The Y coordinate in the destination canvas at which to place the top-left corner of the source image. |
dw | Double | The width to draw the image in the destination canvas. This allows scaling of the drawn image. If not specified, the image is not scaled in width when drawn. |
dh | Double | The height to draw the image in the destination canvas. This allows scaling of the drawn image. If not specified, the image is not scaled in height when drawn. |
See Also
- class HTMLImageElement
- interface ICanvasRenderingContext2D
- package com.aspose.html.Dom.Canvas
- package Aspose.HTML
DrawImage(HTMLCanvasElement, double, double, double, double)
Draws the specified image.
public void DrawImage(HTMLCanvasElement image, double dx, double dy, double dw, double dh)
Parameter | Type | Description |
---|---|---|
image | HTMLCanvasElement | The HTMLCanvasElement to draw into the context. |
dx | Double | The X coordinate in the destination canvas at which to place the top-left corner of the source image. |
dy | Double | The Y coordinate in the destination canvas at which to place the top-left corner of the source image. |
dw | Double | The width to draw the image in the destination canvas. This allows scaling of the drawn image. If not specified, the image is not scaled in width when drawn. |
dh | Double | The height to draw the image in the destination canvas. This allows scaling of the drawn image. If not specified, the image is not scaled in height when drawn. |
See Also
- class HTMLCanvasElement
- interface ICanvasRenderingContext2D
- package com.aspose.html.Dom.Canvas
- package Aspose.HTML
DrawImage(HTMLImageElement, double, double, double, double, double, double, double, double)
Draws the specified image.
public void DrawImage(HTMLImageElement image, double sx, double sy, double sw, double sh,
double dx, double dy, double dw, double dh)
Parameter | Type | Description |
---|---|---|
image | HTMLImageElement | The HTMLImageElement to draw into the context. |
sx | Double | The X coordinate of the top left corner of the sub-rectangle of the source image to draw into the destination context. |
sy | Double | The Y coordinate of the top left corner of the sub-rectangle of the source image to draw into the destination context. |
sw | Double | The width of the sub-rectangle of the source image to draw into the destination context. If not specified, the entire rectangle from the coordinates specified by sx and sy to the bottom-right corner of the image is used. |
sh | Double | The height of the sub-rectangle of the source image to draw into the destination context. |
dx | Double | The X coordinate in the destination canvas at which to place the top-left corner of the source image. |
dy | Double | The Y coordinate in the destination canvas at which to place the top-left corner of the source image. |
dw | Double | The width to draw the image in the destination canvas. This allows scaling of the drawn image. If not specified, the image is not scaled in width when drawn. |
dh | Double | The height to draw the image in the destination canvas. This allows scaling of the drawn image. If not specified, the image is not scaled in height when drawn. |
See Also
- class HTMLImageElement
- interface ICanvasRenderingContext2D
- package com.aspose.html.Dom.Canvas
- package Aspose.HTML
DrawImage(HTMLCanvasElement, double, double, double, double, double, double, double, double)
Draws the specified image.
public void DrawImage(HTMLCanvasElement image, double sx, double sy, double sw, double sh,
double dx, double dy, double dw, double dh)
Parameter | Type | Description |
---|---|---|
image | HTMLCanvasElement | The HTMLCanvasElement to draw into the context. |
sx | Double | The X coordinate of the top left corner of the sub-rectangle of the source image to draw into the destination context. |
sy | Double | The Y coordinate of the top left corner of the sub-rectangle of the source image to draw into the destination context. |
sw | Double | The width of the sub-rectangle of the source image to draw into the destination context. If not specified, the entire rectangle from the coordinates specified by sx and sy to the bottom-right corner of the image is used. |
sh | Double | The height of the sub-rectangle of the source image to draw into the destination context. |
dx | Double | The X coordinate in the destination canvas at which to place the top-left corner of the source image. |
dy | Double | The Y coordinate in the destination canvas at which to place the top-left corner of the source image. |
dw | Double | The width to draw the image in the destination canvas. This allows scaling of the drawn image. If not specified, the image is not scaled in width when drawn. |
dh | Double | The height to draw the image in the destination canvas. This allows scaling of the drawn image. If not specified, the image is not scaled in height when drawn. |
See Also
- class HTMLCanvasElement
- interface ICanvasRenderingContext2D
- package com.aspose.html.Dom.Canvas
- package Aspose.HTML