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

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -