vb.net - gdi+ buffer to file -


i have written little program produces nice real time full screen patterns , effects.

as after thought decided add screen grab feature program hitting print screen cause still image of current frame saved disk.

the program uses gdi+ , writes graphics directly form via manually controlled double buffer. this:

dim mcontext bufferedgraphicscontext  dim mbuff bufferedgraphics 

.

mbuff = mcontext.allocate(me.creategraphics, rec) 

.

mbuff.graphics.fillrectangle... , other drawing operations. 

.

mbuff.render 

is there simple way information form or buffer state can write jpg or bmp file, i'm missing?

thanks


Comments

Popular posts from this blog

Receive udp packets in android gstreamer -

php - Extract Text from HTTP referer -

matplotlib - PYTHON: Annotate boxes disapear dependant on range -