hi guys, may be i do something wrong, but i observed, that if use the following functions to save a screen shot i get saved a squeezed picture in x achsis.
Acknex umgibt uns...zwischen Dir, mir, dem Stein dort... "Hey Griswold ... where u gonna put a tree that big ?" 1998 i married my loved wife ... Sheeva from Mortal Kombat, not Evil-Lyn as might have been expected rayp.flags |= UNTOUCHABLE;
Re: problem with screenshots
[Re: rayp]
#411793 11/19/1221:5611/19/1221:56
thanks guys for reply i tested: file_for_screen (STRING* filename,var number);
it solves my squeezing problem partially. but since i want search objects in the screenshots (track objects for a simulation) i need to access the pixel of the screenshot in realtime. therefor i dont want to save the picture first then load and analyse. i want acess them directly so i use the : bmap_for_screen (screen_shot_map, 0, 1); function.
and for acessing the pixel:
int dx=700; int dy=480; for(i1 = 0; i1 < dx; i1++) { for(j1 = 0; j1 < dy; j1++) {
DirectX is used for saving the image; therefore some restrictions apply. The jpg quality can not be adjusted and the jpg image size must be a multiple of 8. The bmp format can only be read back by bmap_load; it is saved in an unusual 32 bit format and thus can not be used for BMAP definitions or for textures.