473,387 Members | 1,374 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

screenshot of graphics object (or access to it's image)

I've read a lot of posts about this but none that I could find dealt directly with how to do this in c#.

If I have a graphics object at the end of a paint call that has been fully drawn on. How do I get a bmp/image/screenshot of the surface that it controls?
Mar 24 '06 #1
2 1110
IIRC, in .net2.0 it is possible to create a bitmap from the contents of a
control.

"alex sparsky" <al**@sparkysystems.com> schrieb im Newsbeitrag
news:9f********************************@4ax.com...
I've read a lot of posts about this but none that I could find dealt
directly with how to do this in c#.

If I have a graphics object at the end of a paint call that has been fully
drawn on. How do I get a bmp/image/screenshot of the surface that it
controls?

Mar 24 '06 #2
I'm looking for a solution that works in both .net 2.0 and .net 1.1.

On Fri, 24 Mar 2006 18:20:56 +0100, "cody" <de********@gmx.de> wrote:
IIRC, in .net2.0 it is possible to create a bitmap from the contents of a
control.

"alex sparsky" <al**@sparkysystems.com> schrieb im Newsbeitrag
news:9f********************************@4ax.com.. .
I've read a lot of posts about this but none that I could find dealt
directly with how to do this in c#.

If I have a graphics object at the end of a paint call that has been fully
drawn on. How do I get a bmp/image/screenshot of the surface that it
controls?


Mar 24 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
by: EricJ | last post by:
back at the saturday job ;) all help is welcome ( if there is an other way of doing this i don't mind as long as it works) i have to compose an image in code. I have a background image (a...
2
by: ECVerify.com | last post by:
I have a Graphics object in a control that has an image I want to print...I want to print my already made Graphics object that I use in a control, I try this Private Sub pd_PrintPage(sender As...
6
by: SamSpade | last post by:
Public Function PicCreateGraphics() As Graphics 'Client should dispose this PicCreateGraphics = Graphics.FromImage(mDocumentImage) mPicCreateGraphicsSaved = PicCreateGraphics 'Saved so I can...
0
by: Steven Nagy | last post by:
Hey, Suppose I had a third party DLL that is drawing some stuff to a panel or some control. And I actually want to save that as an image (jpg, bmp, whatever). Is this possible? I couldn't...
2
by: jediknight | last post by:
Hi, I am designing a web form which as an imagemap. I need to obtain a graphics object so I can draw on this imagemap. Can anyone tell me how to do this? I have tried creating a bitmap...
0
by: geemiles | last post by:
Hi everyone - I'm new to graphics and am having a simple problem. I have a bitmap image that I want to draw in a picturebox using the paint event. When I do this, though, the image is drawn at about...
6
by: active | last post by:
I have an image and a graphics object created (FromImage) from that image. I need to create a new image and create a new graphics object from the new image. I want the new graphics object have...
9
by: koschwitz | last post by:
Hi, I hope you guys can help me make this simple application work. I'm trying to create a form displaying 3 circles, which independently change colors 3 times after a random time period has...
5
by: almurph | last post by:
RE: Tryign to convert Graphics object to a bitmap Hi, Hope you can help me with this. I have to open a file and add some text to it and then display it. So I create an Image object then...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.