APIImagesdraw_image

draw_image

Draws an image at native size.

Signature

draw_image

Draws an image at native size.

Signature

draw_image(image: Image, x: int, y: int) -> None

Parameters

NameTypeDefaultDescription
imageImageNoneimage argument for this API call.
xintNonex argument for this API call.
yintNoney argument for this API call.

Returns

None

Example

from conjure import *

init_window(360, 640, "Images")
sprite = load_image("player.png")
draw_image(sprite, 120, 220)

See also

  • load_image
  • unload_image
  • draw_image_ex

Return to the images overview or continue with the quickstart.