|
-
Jan 10th, 2000, 08:17 AM
#1
Thread Starter
Lively Member
Is there anyway to check the picture your program is loading colour property, so that for example if the pictures colour it 256 it will except the picture and if not it won't.
also is there anyway to check the size of a picture so if its a certain size it won't accept it, I know how to do this using an image box and setting the value to stretch and then if it doesn't = a certain value not to except it but that way has turned out pretty buggy for me.
also with the common dialog control how do you set more than one file type for the filter property? each time I try I get them in the drop down menu from the common dialog feature but it won't show any files.
thanz
-
Jan 10th, 2000, 05:49 PM
#2
Lively Member
you can determine the number of colors and the size of a bitmap through its header. try reading about bitmap headers.
about your commondialog question... not sure... i don't have my vb in this computer. try checking vb help. you will find the answer there... i think its
cdl.filter = "*.bmp"|*.bmp;"*.jpg"|*.jpg;"*.gif"|*.gif;"All files(*.*)"|*.*
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
|