|
-
Mar 9th, 2003, 04:25 PM
#1
Thread Starter
New Member
-
Mar 9th, 2003, 08:27 PM
#2
To make the bitmap you have to load it from something else instead of out right. For instance from a file like this:
VB Code:
Dim bmp As Bitmap = Bitmap.FromFile("..mybmp.bmp")
-
Mar 9th, 2003, 08:46 PM
#3
PowerPoster
No, that isn't true, the image object can't be created directly, but the bitmap can (I do it all the time). Here is what the docs say about the image class:
An abstract base class that provides functionality for Bitmap, Icon and Metafile descended classes.
Now, to figure out how to create an array of bitmap objects, you do this (this is also how the MSDN library suggests to do it):
VB Code:
Dim bmpPicture(10) As Bitmap
Dim iCounter As Integer
For iCounter = 0 to 10
bmpPicture(iCounter) = New Bitmap(320,240)
Next
'Now do what you want with them.
-
Mar 10th, 2003, 02:39 PM
#4
Thread Starter
New Member
hellswraith: Thanks alot! That code did the trick! I searched the MSDN but found nothing! Where excatly did you find it?
Thanks for your quick response.
-
Mar 10th, 2003, 02:51 PM
#5
PowerPoster
I can't remember now, but I was searching with the words 'arrays' and 'objects'.
Glad to hear it works.
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
|