Next: Rendering, Previous: Rects, Up: API Reference [Contents][Index]
(use-modules (sdl2 surface))
Return #t
if c is a color.
Return #t
if p is a palette.
Return the number of colors in palette.
Return the colors in palette.
Return #t
if pf is a pixel format.
Return the symbolic name of the pixel format pf.
Return the palette for the pixel format pf.
Return the number of bits per pixel for the pixel format pf.
Return the number of bytes per pixel for the pixel format pf.
Return the bitmask for the red component of a pixel in the pixel format pf.
Return the bitmask for the green component of a pixel in the pixel format pf.
Return the bitmask for the blue component of a pixel in the pixel format pf.
Return the bitmask for the alpha component of a pixel in the pixel format pf.
Create a new SDL surface with the dimensions width and height and depth bits per pixel.
Convert bv, a bytevector of pixel data with dimensions widthxheight, to an SDL surface. Each pixel is depth bits in size, and each row of pixels is pitch bytes in size.
Free the memory used by surface.
Call proc, passing it surface and deleting surface upon exit of proc.
Create a new surface from the bitmap data in file.
Return the width of surface in pixels.
Return the height of surface in pixels.
Return the length of a row of pixels in surface in bytes.
Return a bytevector containing the raw pixel data in surface.
Return the pixel format for surface.
Convert the pixels in surface to format, a symbol representing a specific pixel format, and return a new surface object.
Valid format types are:
index1lsb
index1msb
index4lsb
index4msb
index8
rgb332
rgb444
rgb555
bgr555
argb4444
rgba4444
abgr4444
bgra4444
argb1555
rgba5551
abgr1555
bgra5551
rgb565
bgr565
rgb24
bgr24
rgb888
rgbx8888
bgr888
bgrx8888
argb8888
rgba8888
abgr8888
bgra8888
argb2101010
yv12
iyuv
yuy2
uyvy
yvyu
Blit the rectangle src-rect from the surface src to dst-rect of the surface dst.
Blit the rectangle src-rect from the surface src to dst-rect of the surface dst, scaling the source to fit the destination.
Fill rect with color, a 32-bit color encoded as an integer value, in the surface dst.
Next: Rendering, Previous: Rects, Up: API Reference [Contents][Index]