PDA

Click to See Complete Forum and Search --> : Pictures


Insane Killa
Jan 10th, 2000, 07:17 AM
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

Tonio169
Jan 10th, 2000, 04:49 PM
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(*.*)"|*.*