|
-
Jun 24th, 2000, 05:55 PM
#1
Thread Starter
Addicted Member
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.
-
Jun 24th, 2000, 06:24 PM
#2
Addicted Member
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.
-
Jun 24th, 2000, 09:40 PM
#3
transcendental analytic
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.
-
Jun 24th, 2000, 11:10 PM
#4
PowerPoster
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|