Results 1 to 8 of 8

Thread: [RESOLVED] Accessing Private Stuff

  1. #1

    Thread Starter
    Lively Member
    Join Date
    May 2005
    Posts
    88

    Resolved [RESOLVED] Accessing Private Stuff

    Hi all, How do you know the properties of a picture:

    it's creation date
    it's size in pixels


    thanks guys

    any help is welcome
    You should LEARN not COPY... by learning you could be original in future work ... by copying you will risk getting in trouble.

    And as always.... What goes around .. Comes Around.

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: Accessing Private Stuff

    Use the System.Io.FileInfo class, get the CreationTime property

  3. #3
    Frenzied Member Asgorath's Avatar
    Join Date
    Sep 2004
    Location
    Saturn
    Posts
    2,036

    Re: Accessing Private Stuff

    There probably a more effcient way but here goes
    VB Code:
    1. dim aImage as image
    2. aImage = aImage.FromFile(PicPath)
    3.  
    4. Dim res_V As Single = aImage.Width
    5. Dim res_H As Single = aImage.Height
    "The dark side clouds everything. Impossible to see the future is."

  4. #4
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: Accessing Private Stuff

    I've always wondered how windows is able to determine the image's dimensions when you mouseover it (in WinXP at least). It must be an API of some sort...

  5. #5

    Thread Starter
    Lively Member
    Join Date
    May 2005
    Posts
    88

    Re: Accessing Private Stuff

    Quote Originally Posted by Asgorath
    There probably a more effcient way but here goes
    VB Code:
    1. dim aImage as image
    2. aImage = aImage.FromFile(PicPath)
    3.  
    4. Dim res_V As Single = aImage.Width
    5. Dim res_H As Single = aImage.Height

    thnaks dude! but what about date?
    You should LEARN not COPY... by learning you could be original in future work ... by copying you will risk getting in trouble.

    And as always.... What goes around .. Comes Around.

  6. #6
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: Accessing Private Stuff

    Erm... did you read my post?

    VB Code:
    1. Dim fi As New System.IO.FileInfo("c:\abc.jpg")
    2.         MessageBox.show(fi.CreationTime.ToShortDateString())

  7. #7

    Thread Starter
    Lively Member
    Join Date
    May 2005
    Posts
    88

    Re: Accessing Private Stuff

    ermm.. well I did read it .. but the last post was more user friendly

    thanks mate
    You should LEARN not COPY... by learning you could be original in future work ... by copying you will risk getting in trouble.

    And as always.... What goes around .. Comes Around.

  8. #8
    type Woss is new Grumpy; wossname's Avatar
    Join Date
    Aug 2002
    Location
    #!/bin/bash
    Posts
    5,682

    Re: Accessing Private Stuff

    Quote Originally Posted by mendhak
    I've always wondered how windows is able to determine the image's dimensions when you mouseover it (in WinXP at least). It must be an API of some sort...
    I think it probably is something like that, or it may be a background service of some kind. The way it seems to me is that windows needs to know how to open and read all the different kinds of header blocks found in different image file formats. Jpegs store all kinds of info, bmps store hardly anything.

    Did you ever find out who nicked your camera?
    I don't live here any more.

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