EDT PDV SDK Documentation 6.1.0
libdvu.h File Reference

(git 08d871f, 2023-10-06)

EDT digital imaging utilities library header file. More...

This graph shows which files directly or indirectly include this file:

Functions

int edt_dvu_write_raw (int imagesize, u_char *imagebuf, char *fname)
 Writes a 24-bit per pixel RGB data buffer as a raw data file (no formatting). More...
 
int edt_dvu_write_bmp (char *fname, u_char *buffer, int w, int h)
 Writes an 8-bit per pixel data buffer as a grayscale Windows bitmap file. More...
 
int edt_dvu_write_bmp24 (char *fname, u_char *buffer, int w, int h)
 Writes a 24-bit per pixel RGB data buffer as a Windows bitmap file. More...
 
int edt_dvu_write_image (char *fname, u_char *addr, int x_size, int y_size, int istride)
 Utility routine that outputs a 1-band, 8-bit image to a Sun raster format file (regardless of platform), with stride. This function can be used to output a partial image. For example, to output the top left 100x100 pixels of the image, specify x_size of 100 and y_size * 100, and an istride of the actual width of the image. More...
 
int edt_dvu_write_image24 (char *fname, u_char *addr, int x_size, int y_size, int istride)
 Writes a 24-bit per pixel RGB data buffer as a Sun Raster format file, with stride. More...
 
int edt_dvu_write_rasfile (char *fname, u_char *addr, int x_size, int y_size)
 Utility routine that outputs a 1-band, 8-bit image to a Sun raster format file (regardless of platform). More...
 
int edt_dvu_write_rasfile16 (char *fname, u_char *addr, int x_size, int y_size, int depth)
 Converts 1 band, 10-16 bit image to a sun raster format file and writes to a file. More...
 
int edt_dvu_write_rasfile24 (char *fname, u_char *addr, int x_size, int y_size)
 Writes a 24-bit per pixel RGB data buffer as a Sun Raster format file. More...
 

Detailed Description

EDT digital imaging utilities library header file.

Function Documentation

◆ edt_dvu_write_bmp24()

int edt_dvu_write_bmp24 ( char *  fname,
u_char *  buffer,
int  w,
int  h 
)

Writes a 24-bit per pixel RGB data buffer as a Windows bitmap file.

Parameters
fnameFilename.
bufferData buffer, one byte per pixel.
widthNumber of pixels (bytes) per line.
heightNumber of lines in the image.
Returns
0 on success, -1 on failure.
See also
edt_dvu_write_bmp