CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 6 of 6
  1. #1
    Join Date
    Sep 2003
    Posts
    280

    [SDK]How to read my own data into picture

    Hello,
    I create a picture resource typed 'frame',I would like to write data into them.
    I find am example from http://www.winprog.org/tutorial/bitmaps.html.
    But i don't use the bitmap resource and the bmp file.
    I will use my own data.
    Could someone tell me how to do that?
    Thanks a lot!

  2. #2
    Join Date
    Oct 2002
    Location
    Italy
    Posts
    324
    Hi,
    you problem still isn't clear to me.. are you going to update the bitmap resource or do you want to change dinamically the content of a bitmap ?
    Regards,
    Marco Era
    www.marcoera.com

    Latest post on my blog: Back to the Amiga's times

  3. #3
    Join Date
    Sep 2003
    Posts
    280
    Quote Originally Posted by puzzolino
    Hi,
    you problem still isn't clear to me.. are you going to update the bitmap resource or do you want to change dinamically the content of a bitmap ?
    Hi.
    I would like to make R,G,B datas into the picture resource,and display.
    R datas in R.dat file. G datas in G.dat file. B datas in B.dat file.
    I will open and read them, and make them into the picture resource.
    Finally, display.
    Thanks!

  4. #4
    Join Date
    May 2000
    Location
    KY, USA
    Posts
    18,652
    [ Moved thread ]

  5. #5
    Join Date
    Oct 2002
    Location
    Italy
    Posts
    324
    Ok,
    if you want to modify directly the RGB values then I suggest you create a dib section.
    Check out this site for any good articles on how to do that.

    To easily update a resource, follow this link:
    Updating resources
    Regards,
    Marco Era
    www.marcoera.com

    Latest post on my blog: Back to the Amiga's times

  6. #6
    Join Date
    Sep 2003
    Posts
    280
    Quote Originally Posted by puzzolino
    Ok,
    if you want to modify directly the RGB values then I suggest you create a dib section.
    Check out this site for any good articles on how to do that.

    To easily update a resource, follow this link:
    Updating resources
    A little more difficult than i think.
    Thanks, I will study that.

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

Featured