S or /

SourceClass ImageDelta

from egui import ImageDelta
class ImageDelta:

A change to an image.

Either a whole new image, or an update to a rectangular region of it.

Properties§

@property def image(self, /) -> ColorImage§
@image.setter def image(self, /, image: ColorImage) -> None§
@property def options(self, /) -> TextureOptions§
@options.setter def options(self, /, options: TextureOptions) -> None§
@property def pos(self, /) -> tuple[int, int] |None§
@pos.setter def pos(self, /, pos: tuple[int, int] |None) -> None§

Methods§

Source@staticmethod def full(image: Any, options: TextureOptions) -> ImageDelta§

Update the whole texture.

def image_data(self, /) -> ImageData§
Sourcedef is_whole(self, /) -> bool§

Is this affecting the whole texture? If False, this is a partial (sub-region) update.

Source@staticmethod def partial(pos: tuple[int, int], image: Any, options: TextureOptions) -> ImageDelta§

Update a sub-region of an existing texture.

def set_image_data(self, /, image: Any) -> None§