Results 1 to 3 of 3

Thread: [RESOLVED] .NET (GDI+) Can you use GDI+ to draw to memory?

  1. #1

    Thread Starter
    Frenzied Member conipto's Avatar
    Join Date
    Jun 2005
    Location
    Chicago
    Posts
    1,175

    Resolved [RESOLVED] .NET (GDI+) Can you use GDI+ to draw to memory?

    Hi,

    I am wondering if there is some way to draw to an object like a bitmap or image, without displaying it on screen. I want to be able to use some GDI+ Stuff, so if possible, I'd like to avoid the APIs if possible.

    Basically, my requirements in short are:

    Be able to use Graphics.Drawstring on it.

    Be able to convert the final product to a Bitmap Object.

    Not have it display on screen.

    Bill
    Hate Adobe Acrobat? My Codebank Sumbissions - Easy CodeDom Expression evaluator: (VB / C# ) -- C# Scrolling Text Display

    I Like to code when drunk. Don't say you weren't warned.

  2. #2
    Hyperactive Member
    Join Date
    Jul 2005
    Posts
    297

    Re: .NET (GDI+) Can you use GDI+ to draw to memory?

    dim bm as new bitmap(100,100) ' width, height
    dim g as graphics = graphics.fromimage(bm)
    g.drawstring(...)

  3. #3

    Thread Starter
    Frenzied Member conipto's Avatar
    Join Date
    Jun 2005
    Location
    Chicago
    Posts
    1,175

    Re: .NET (GDI+) Can you use GDI+ to draw to memory?

    Thanks, I can't believe I missed that.

    Bill
    Hate Adobe Acrobat? My Codebank Sumbissions - Easy CodeDom Expression evaluator: (VB / C# ) -- C# Scrolling Text Display

    I Like to code when drunk. Don't say you weren't warned.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width