| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer(kind=1), | intent(out) | :: | image_data(:) | |||
| integer, | intent(in) | :: | w | |||
| integer, | intent(in) | :: | h |
| Type | Intent | Optional | 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 |
Composite 3D RGB bitmap directly onto raster image buffer
| Type | Intent | Optional | 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 |
Composite 3D RGB bitmap onto raster buffer using 0-based destination coords
| Type | Intent | Optional | 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_x0 | |||
| integer, | intent(in) | :: | dest_y0 |
Render text to RGB bitmap by using existing PNG rendering then converting
| Type | Intent | Optional | 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 |
Render text to an RGB bitmap using a given font size (pixel_height).
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer(kind=1), | intent(inout) | :: | bitmap(:,:,:) | |||
| integer, | intent(in) | :: | width | |||
| integer, | intent(in) | :: | height | |||
| integer, | intent(in) | :: | x0 | |||
| integer, | intent(in) | :: | y0 | |||
| character(len=*), | intent(in) | :: | text | |||
| integer(kind=1), | intent(in) | :: | r | |||
| integer(kind=1), | intent(in) | :: | g | |||
| integer(kind=1), | intent(in) | :: | b | |||
| real(kind=wp), | intent(in) | :: | pixel_height |
Get ascent/descent/height for a given pixel_height.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=wp), | intent(in) | :: | pixel_height | |||
| real(kind=wp), | intent(out) | :: | ascent_px | |||
| real(kind=wp), | intent(out) | :: | descent_px | |||
| integer, | intent(out) | :: | height_px | |||
| logical, | intent(out) | :: | success |
Rotate bitmap 90 degrees counter-clockwise For arrays: (i,j) maps to (height-j+1, i) with swapped dimensions
| Type | Intent | Optional | 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 |
Rotate bitmap 90 degrees clockwise For arrays: (i,j) maps to (j, width-i+1) with swapped dimensions
| Type | Intent | Optional | 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 |
Rotate an RGB bitmap around an anchor point, returning the rotated bitmap and the anchor location in the destination bitmap.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer(kind=1), | intent(in) | :: | src_bitmap(:,:,:) | |||
| integer, | intent(in) | :: | src_width | |||
| integer, | intent(in) | :: | src_height | |||
| real(kind=wp), | intent(in) | :: | angle_deg | |||
| real(kind=wp), | intent(in) | :: | anchor_x | |||
| real(kind=wp), | intent(in) | :: | anchor_y | |||
| integer(kind=1), | intent(out), | allocatable | :: | dst_bitmap(:,:,:) | ||
| integer, | intent(out) | :: | dst_width | |||
| integer, | intent(out) | :: | dst_height | |||
| real(kind=wp), | intent(out) | :: | dst_anchor_x | |||
| real(kind=wp), | intent(out) | :: | dst_anchor_y |