class

Godot::Image

Inherits Godot::Resource < Godot::RefCounted < Godot::Object < Reference < Object

Constructors

new(pointer : Pointer(Void) = Pointer(Void).null)
Source

Instance methods

adjust_bcs(brightness : Float64, contrast : Float64, saturation : Float64) : Void
Source
blend_rect(src : Image, src_rect : Rect2i, dst : Vector2i) : Void
Source
blend_rect_mask(src : Image, mask : Image, src_rect : Rect2i, dst : Vector2i) : Void
Source
blit_rect(src : Image, src_rect : Rect2i, dst : Vector2i) : Void
Source
blit_rect_mask(src : Image, mask : Image, src_rect : Rect2i, dst : Vector2i) : Void
Source
bump_map_to_normal_map(bump_scale : Float64) : Void
Source
clear_mipmaps
Source
compress(mode : Int64, source : Int64, profile : Int64) : Int64
Source
compress_from_channels(mode : Int64, channels : Int64, profile : Int64) : Int64
Source
compute_image_metrics(compared_image : Image, use_luma : Bool) : Pointer(Void)
Source
convert(format : Int64) : Void
Source
copy_from(src : Image) : Void
Source
create(width : Int64, height : Int64, use_mipmaps : Bool, format : Int64) : Image
Source
create_empty(width : Int64, height : Int64, use_mipmaps : Bool, format : Int64) : Image
Source
create_from_data(width : Int64, height : Int64, use_mipmaps : Bool, format : Int64, data : Pointer(Void)) : Image
Source
crop(width : Int64, height : Int64) : Void
Source
data

Property data getter

Source
data=(val)

Property data setter

Source
decompress
Source
detect_alpha
Source
detect_used_channels(source : Int64) : Int64
Source
fill(color : Color) : Void
Source
fill_rect(rect : Rect2i, color : Color) : Void
Source
fix_alpha_edges
Source
flip_x
Source
flip_y
Source
generate_mipmaps(renormalize : Bool, preserve_alpha_test_coverage : Bool, alpha_test_threshold : Float64) : Int64
Source
get_data
Source
get_data_size
Source
get_format
Source
get_height
Source
get_mipmap_count
Source
get_mipmap_offset(mipmap : Int64) : Int64
Source
get_pixel(x : Int64, y : Int64) : Color
Source
get_pixelv(point : Vector2i) : Color
Source
get_region(region : Rect2i) : Image
Source
get_size
Source
get_used_rect
Source
get_width
Source
has_mipmaps
Source
is_compressed
Source
is_empty
Source
is_invisible
Source
linear_to_srgb
Source
load(path : String) : Int64
Source
load_bmp_from_buffer(buffer : Pointer(Void)) : Int64
Source
load_dds_from_buffer(buffer : Pointer(Void)) : Int64
Source
load_exr_from_buffer(buffer : Pointer(Void)) : Int64
Source
load_from_file(path : String) : Image
Source
load_jpg_from_buffer(buffer : Pointer(Void)) : Int64
Source
load_ktx_from_buffer(buffer : Pointer(Void)) : Int64
Source
load_png_from_buffer(buffer : Pointer(Void)) : Int64
Source
load_svg_from_buffer(buffer : Pointer(Void), scale : Float64) : Int64
Source
load_svg_from_string(svg_str : String, scale : Float64) : Int64
Source
load_tga_from_buffer(buffer : Pointer(Void)) : Int64
Source
load_webp_from_buffer(buffer : Pointer(Void)) : Int64
Source
normal_map_to_xy
Source
premultiply_alpha
Source
resize(width : Int64, height : Int64, interpolation : Int64) : Void
Source
resize_to_po2(square : Bool, interpolation : Int64) : Void
Source
rgbe_to_srgb
Source
rotate_180
Source
rotate_90(direction : Int64) : Void
Source
save_dds(path : String) : Int64
Source
save_dds_to_buffer
Source
save_exr(path : String, grayscale : Bool, color_image : Bool, max_linear_value : Float64) : Int64
Source
save_exr_to_buffer(grayscale : Bool, color_image : Bool, max_linear_value : Float64) : Pointer(Void)
Source
save_jpg(path : String, quality : Float64) : Int64
Source
save_jpg_to_buffer(quality : Float64) : Pointer(Void)
Source
save_png(path : String) : Int64
Source
save_png_to_buffer
Source
save_webp(path : String, lossy : Bool, quality : Float64) : Int64
Source
save_webp_to_buffer(lossy : Bool, quality : Float64) : Pointer(Void)
Source
set_data(width : Int64, height : Int64, use_mipmaps : Bool, format : Int64, data : Pointer(Void)) : Void
Source
set_pixel(x : Int64, y : Int64, color : Color) : Void
Source
set_pixelv(point : Vector2i, color : Color) : Void
Source
shrink_x2
Source
srgb_to_linear
Source

Nested types