SDL.Video.Surface.convert_pixels – sdl2 Reference Manual
Packages
sdl2
SDL
Video
Surface
convert_pixels
Surface.from_bmp
Surface.from_bmp_rw
Surface.from_rgb
Surface.from_rgb_with_format
Surface.legacy_rgb
Surface.legacy_rgb_with_format
Surface.rgb
Surface.rgb_with_format
@unlock
blit
blit_scaled
convert
convert_format
do_lock
fill_rect
fill_rects
get_alphamod
get_blend_mode
get_cliprect
get_colorkey
get_colormod
lowerblit
lowerblit_scaled
must_lock
save_bmp
save_bmp_rw
set_alphamod
set_blend_mode
set_cliprect
set_colorkey
set_colormod
set_palette
set_rle
softstretch
up
clip_rect
flags
format
h
list_blitmap
locked
map
pitch
pixels
refcount
userdata
w
convert_pixels
Description:
[
CCode
( cname =
"SDL_ConvertPixels"
) ]
public
static
int
convert_pixels
(
int
width,
int
height,
PixelRAWFormat
src_format,
void
* src,
int
src_pitch,
PixelRAWFormat
dst_format,
void
* dst,
int
dst_pitch)