Menu

#2 getPixelData

open
nobody
None
5
2006-01-19
2006-01-19
Champ Yen
No

SWIG_getPixelDirectByteBuffer in SDLVideo_wrap.c
buffer = (*jenv)->NewDirectByteBuffer(jenv,
surface->pixels, surface->w * surface->h *
surface->format->BytesPerPixel);

where surface->w should be surface->pitch

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.