Re: Add my own bitmaps into a resource file?



Somebody wrote:

Hello,

I want to use a resource file to load my own bitmaps. Previously I
have been using loadfromfile but want to get away from that.

However, I can set up the resource file but it only appears to let me
create a new bitmap.

MyRes.rc:

MYBITMAP BITMAP 'C:\images\MyBitmap.bmp'

Should work fine. Image editor will only let you copy and paste, AFAIK.

--
Rudy Velthuis http://rvelthuis.de

"Sometimes, the best answer is a more interesting question"
-- Terry Pratchett
.



Relevant Pages

  • Re: dynamic resource
    ... yes I'd like to load new bitmap ... But resource file looks like is static. ... I use ATL/MFC applicatation. ...
    (microsoft.public.vc.mfc)
  • Bitmap prb ?
    ... I want my own bitmap to be displayed in the toolbox ... This resource file contains just one item: ... All works fine, the control works fine... ... But when I add the control to the toolbox, ...
    (microsoft.public.dotnet.languages.vb.controls)
  • Bitmap Image/ Resource file problem
    ... I have a minor problem locating an image file to load as a Bitmap. ... A resource file "NudeSusan.jpeg" (which I think is actually a bmp ...
    (microsoft.public.dotnet.languages.csharp)
  • problem with ToolboxBitmap ?
    ... I want my own bitmap to be displayed in the toolbox ... This resource file contains just one item: ... All works fine, the control works fine... ... But when I add the control to the toolbox, ...
    (microsoft.public.dotnet.framework.windowsforms.controls)
  • Re: Add my own bitmaps into a resource file?
    ... I want to use a resource file to load my own bitmaps. ... I can set up the resource file but it only appears to let me create a new bitmap. ... Kent Briggs, kbriggs@xxxxxxxxxxx ...
    (comp.lang.pascal.delphi.misc)