Re: Dynamically add images to resources

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Ajay Kalra (ajaykalra_at_yahoo.com)
Date: 02/12/04


Date: Wed, 11 Feb 2004 21:12:33 -0800

I think if you just open the image and create a bitmap out of it and draw whatever else
you want; you should be able to save it back on the disk in whatever format you want. GDI+
may be helpful in achieving this. Ask this question in GDI/Graphics newsgroup for more
responses.

-- 
Ajay Kalra [MVP - VC++]
ajaykalra@yahoo.com
"James Simpson" <anonymous@discussions.microsoft.com> wrote in message
news:98411720-D74C-4326-BE1F-2D4691203AB2@microsoft.com...
| Hello,
| I was wondering how to add a image to a CBitmapButton that is not a resource, but is a
image somewhere on a user's hard-drive?
| Thanks in advance.
|
| Sincerely,
|
| James Simpson
| Straightway Technologies
| http://straightway.no-ip.com


Relevant Pages

  • Re: Owner Drawn Button
    ... > reads the bmp resource and sizes itself to whatever size the bitmap is. ... effects) but still have control over the size, ... I am thinking that I will have to actually draw the image to use for the ...
    (microsoft.public.windowsce.embedded.vc)
  • Re: Drawing sideways bitmaps
    ... > Is there a simple way to draw a side ways bitmap? ... > I'm using CBitmapButton to draw a image... ... The universe is a figment of its own imagination. ...
    (microsoft.public.vc.mfc)
  • Drawing sideways bitmaps
    ... Is there a simple way to draw a side ways bitmap? ... I'm using CBitmapButton to draw a image... ... I would like to draw it upright ...
    (microsoft.public.vc.mfc)
  • Re: Printing a WinForm as a Graphic
    ... the Graphics device you need to draw on. ... etc., and the PrinterSettings, which is used to determine which printer to ... which passes a PrintPageEventArgs instance containing the ... I would wait to draw the Bitmap in the PrintPage event handler as a good ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Scaling Problem
    ... I suggest that you draw your walls and other objects with absolute coordinates and use a transform to scale everything to the desired sizes. ... Answer those GDI+ questions with the GDI+ FAQ ... EncoderParameters encoderParams = new EncoderParameters; ... the bitmap has to have a size. ...
    (microsoft.public.dotnet.framework.drawing)