Results 1 to 2 of 2

Thread: Pictures

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Nov 1999
    Posts
    65

    Post

    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

  2. #2
    Lively Member
    Join Date
    Jul 1999
    Posts
    99

    Post

    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
  •  



Click Here to Expand Forum to Full Width