ImageTexture

Inherits: Texture2D < Texture < Resource < Reference < Object

A Texture2D based on an Image.

Description

A Texture2D based on an Image. Can be created from an Image with create_from_image.

Methods

void

create_from_image ( Image image )

Format

get_format ( ) const

void

set_size_override ( Vector2 size )

void

update ( Image image, bool immediate=false )

Method Descriptions

  • void create_from_image ( Image image )

Create a new ImageTexture from an Image.


Returns the format of the ImageTexture, one of Format.


  • void set_size_override ( Vector2 size )

Resizes the ImageTexture to the specified dimensions.


  • void update ( Image image, bool immediate=false )

Replaces the texture's data with a new image. If immediate is true, it will take effect immediately after the call.