Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, alibaba), 1,184 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
problem with screenshots #411790
11/19/12 21:27
11/19/12 21:27
Joined: Jul 2011
Posts: 69
P
pjotr987 Offline OP
Junior Member
pjotr987  Offline OP
Junior Member
P

Joined: Jul 2011
Posts: 69
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.

bmap_for_screen (screen_shot_map, 0, 1);
bmap_save(screen_shot_map,"xyz.png");

the saved pic loks compresed in x achsis. circles become ovals.

sory for mistaks

just drank too much wine wink

Re: problem with screenshots [Re: pjotr987] #411791
11/19/12 21:34
11/19/12 21:34
Joined: Jul 2008
Posts: 2,107
Germany
rayp Offline

X
rayp  Offline

X

Joined: Jul 2008
Posts: 2,107
Germany
wait(1) in between? Dont know or try this
Quote:
file_for_screen (STRING* filename,var number);


Edit: Third edit cause of wlan disconnection.

Last edited by rayp; 11/19/12 21:58.

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/12 21:56
11/19/12 21:56
Joined: Jun 2009
Posts: 2,210
Bavaria, Germany
Kartoffel Offline
Expert
Kartoffel  Offline
Expert

Joined: Jun 2009
Posts: 2,210
Bavaria, Germany
yes, as rayp suggested:
file_for_screen (STRING* filename,var number);
is here right.

use -1 as number to write the file name only.
also the screenshot gets taken one frame after the function call


POTATO-MAN saves the day! - Random
Re: problem with screenshots [Re: rayp] #411795
11/19/12 22:12
11/19/12 22:12
Joined: Jul 2011
Posts: 69
P
pjotr987 Offline OP
Junior Member
pjotr987  Offline OP
Junior Member
P

Joined: Jul 2011
Posts: 69
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++)
{

pixel_1 = pixel_for_bmap(screen_shot_map,i1,j1);
pixel=pixel_1;
bmp_to_send[i1][j1][0]=pixel;
}
}


but its output seems to be compressed in x-achsis.

any ideas?
thanks in advance for any sugestion

Re: problem with screenshots [Re: pjotr987] #411797
11/19/12 22:20
11/19/12 22:20
Joined: Jun 2009
Posts: 2,210
Bavaria, Germany
Kartoffel Offline
Expert
Kartoffel  Offline
Expert

Joined: Jun 2009
Posts: 2,210
Bavaria, Germany
Originally Posted By: Manual
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.


POTATO-MAN saves the day! - Random

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1