Results 1 to 4 of 4

Thread: Bitmap experts

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jun 2000
    Posts
    175
    When I put all the bitmap files in a binary file then I don't have a .bmp file and that's the whole idea.
    Let's put it this way, I want to have a file called (Mainpic.dat ) and I want to read a part of if (say from the middle of file) into memory and then put it in a picture box. I hope I was clear enough.
    Mass

  2. #2
    Addicted Member
    Join Date
    Jul 1999
    Location
    Portland, OR.
    Posts
    226
    Would this help

    Bitmap 2 Txt

    Description: Convert any bitmap (16 shades of gray) to text (*.WRI).
    It reads picture loaded in picturebox and then
    converts pixel by pixel to ASCII code...

    http://www.planet-source-code.com/vb...=9223&lngWId=1

    Compatibility: VB 5.0/6.0


    Good Luck.


  3. #3
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    Lyla, I have to say that was impressive i found behind the link, but it's not the case here.

    Mass, If youre willing to use temporary files you could stack all files into one binary and then extract them, load them and kill them.
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  4. #4
    PowerPoster Chris's Avatar
    Join Date
    Jan 1999
    Location
    K-PAX
    Posts
    3,238

    Lightbulb

    The best solution is put all your Bitmap image file into a resource file. Then you can call each of them easily with the LoadResPicture function

    Code:
    Private Sub Command1_Click()
    Picture1.Picture = LoadResPicture(<Your Bitmap Id in resource file>, vbresBitmap)
    End Sub
    To save your bitmap into memory, you can do this easily with the Clipboard object.

    Code:
    Private Sub Command2_Click()
    'Copy image into memory
    Clipboard.SetData Picture1.Picture, vbCFBitmap
    End Sub
    
    Private Sub Command3_Click()
    'Copy load image from memory
    Picture1.Picture = Clipboard.GetData()
    End Sub

    [Edited by Chris on 06-25-2000 at 12:14 PM]

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