Converting a Graphics object to a bitmap
Converting a Graphics object to a bitmap
Converting a Graphics object to a bitmap
Converting a Graphics object to a bitmap
Converting a Graphics object to a bitmap
Converting a Graphics object to a bitmap Converting a Graphics object to a bitmap Converting a Graphics object to a bitmap Converting a Graphics object to a bitmap Converting a Graphics object to a bitmap Converting a Graphics object to a bitmap Converting a Graphics object to a bitmap Converting a Graphics object to a bitmap
Converting a Graphics object to a bitmap Converting a Graphics object to a bitmap
Converting a Graphics object to a bitmap
Go Back  Xtreme Visual Basic Talk > > > Converting a Graphics object to a bitmap


Reply
 
Thread Tools Display Modes
  #1  
Old 01-06-2004, 01:27 PM
VTBadfish VTBadfish is offline
Freshman
 
Join Date: Aug 2003
Location: Fairfax Virginia
Posts: 34
Default Converting a Graphics object to a bitmap


is this possible? and if so how?
__________________
-"Last night I swallowed liquor and a lighter and this morning I threw up fire..."

-Straight out of Blacksburg the Code Slinging BadFish
Reply With Quote
  #2  
Old 01-07-2004, 01:30 AM
AndreRyan AndreRyan is offline
Contributor
 
Join Date: Jan 2002
Posts: 489
Default

No it's not, you can however copy what you've drawn from the control to a Bitmap object. The easiest method is to draw directly to the Bitmap but you can copy from a control to a Bitmap but I don't remember how at the moment but I think you have to use BitBlt, I don't think there is a purely managed method(Apart from the Image property on some controls which gives you a Bitmap representing what's been drawn to the control)
__________________
If you're a beginner or have little experience don't launch into something beyond your abilities, for example don't start game programming by trying to make a 3D first person shooter if you have no idea how to use DirectX and/or OpenGL or how to keep track of objects in a 2D plane let alone a 3D one.
Reply With Quote
  #3  
Old 01-07-2004, 07:24 AM
VTBadfish VTBadfish is offline
Freshman
 
Join Date: Aug 2003
Location: Fairfax Virginia
Posts: 34
Default

Anyone know how I could do what's described below? Basically what I'm trying to do is take a bitmap of a map of a building and use GDI (or some other means if there is one) to draw an arrow on it pointing to a specific cubicle and then send it by email to another person (thus why it has to be in bitmap or some other common graphical format). Any ideas on how to do this?

Quote:
Originally Posted by AndreRyan
No it's not, you can however copy what you've drawn from the control to a Bitmap object. The easiest method is to draw directly to the Bitmap but you can copy from a control to a Bitmap but I don't remember how at the moment but I think you have to use BitBlt, I don't think there is a purely managed method(Apart from the Image property on some controls which gives you a Bitmap representing what's been drawn to the control)

__________________
-"Last night I swallowed liquor and a lighter and this morning I threw up fire..."

-Straight out of Blacksburg the Code Slinging BadFish
Reply With Quote
  #4  
Old 01-07-2004, 09:29 AM
VTBadfish VTBadfish is offline
Freshman
 
Join Date: Aug 2003
Location: Fairfax Virginia
Posts: 34
Default

Well I fixed my own problem using some bitblt and it works well enough; any other ides would still be good discussion I figure.
__________________
-"Last night I swallowed liquor and a lighter and this morning I threw up fire..."

-Straight out of Blacksburg the Code Slinging BadFish
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to use Direct Memory Access to do Graphics BillSoo Tutors' Corner 3 07-11-2005 05:41 PM
Copy 32bit bitmap data into byte array _Mark_ API 6 12-15-2004 09:08 AM
Writing entire objects to a file? MoNoXBooGIE General 14 04-20-2004 07:21 PM
Saving Picturebox image as black & white (1-bit) bitmap file A-Dam Interface and Graphics 8 08-19-2003 11:54 PM
File System Object (Code for the masses) Aquila General 2 07-25-2003 10:10 AM

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
Converting a Graphics object to a bitmap
Converting a Graphics object to a bitmap
Converting a Graphics object to a bitmap Converting a Graphics object to a bitmap
Converting a Graphics object to a bitmap
Converting a Graphics object to a bitmap
Converting a Graphics object to a bitmap Converting a Graphics object to a bitmap Converting a Graphics object to a bitmap Converting a Graphics object to a bitmap Converting a Graphics object to a bitmap Converting a Graphics object to a bitmap Converting a Graphics object to a bitmap
Converting a Graphics object to a bitmap
Converting a Graphics object to a bitmap
 
Converting a Graphics object to a bitmap
Converting a Graphics object to a bitmap
 
-->