fortplot_bitmap Module



Subroutines

public subroutine initialize_white_background(image_data, w, h)

Arguments

Type IntentOptional Attributes Name
integer(kind=1), intent(out) :: image_data(:)
integer, intent(in) :: w
integer, intent(in) :: h

public subroutine composite_image(main_image, main_width, main_height, overlay_image, overlay_width, overlay_height, dest_x, dest_y)

Arguments

Type IntentOptional Attributes Name
integer(kind=1), intent(inout) :: main_image(*)
integer, intent(in) :: main_width
integer, intent(in) :: main_height
integer(kind=1), intent(in) :: overlay_image(*)
integer, intent(in) :: overlay_width
integer, intent(in) :: overlay_height
integer, intent(in) :: dest_x
integer, intent(in) :: dest_y

public subroutine composite_bitmap_to_raster(raster_buffer, raster_width, raster_height, bitmap, bitmap_width, bitmap_height, dest_x, dest_y)

Composite 3D RGB bitmap directly onto raster image buffer

Arguments

Type IntentOptional Attributes Name
integer(kind=1), intent(inout) :: raster_buffer(*)
integer, intent(in) :: raster_width
integer, intent(in) :: raster_height
integer(kind=1), intent(in) :: bitmap(:,:,:)
integer, intent(in) :: bitmap_width
integer, intent(in) :: bitmap_height
integer, intent(in) :: dest_x
integer, intent(in) :: dest_y

public subroutine render_text_to_bitmap(bitmap, width, height, x, y, text)

Render text to RGB bitmap by using existing PNG rendering then converting

Arguments

Type IntentOptional Attributes Name
integer(kind=1), intent(inout) :: bitmap(:,:,:)
integer, intent(in) :: width
integer, intent(in) :: height
integer, intent(in) :: x
integer, intent(in) :: y
character(len=*), intent(in) :: text

public subroutine rotate_bitmap_90_ccw(src_bitmap, dst_bitmap, src_width, src_height)

Rotate bitmap 90 degrees counter-clockwise For arrays: (i,j) maps to (height-j+1, i) with swapped dimensions

Arguments

Type IntentOptional Attributes Name
integer(kind=1), intent(in) :: src_bitmap(:,:,:)
integer(kind=1), intent(out) :: dst_bitmap(:,:,:)
integer, intent(in) :: src_width
integer, intent(in) :: src_height

public subroutine rotate_bitmap_90_cw(src_bitmap, dst_bitmap, src_width, src_height)

Rotate bitmap 90 degrees clockwise
For arrays: (i,j) maps to (j, width-i+1) with swapped dimensions

Arguments

Type IntentOptional Attributes Name
integer(kind=1), intent(in) :: src_bitmap(:,:,:)
integer(kind=1), intent(out) :: dst_bitmap(:,:,:)
integer, intent(in) :: src_width
integer, intent(in) :: src_height