Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: A couple of things

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Feb 2009
    Location
    Castlegar, BC Canada
    Posts
    4,086

    Default A couple of things

    Just got started with the Graphics Library... What a great resource. Thank you Thank you thank you.

    I'm a bit curious about two things

    1. in a cImageContainer, I have peImageStyle set to ifFitOneSide. Then I set the psImage and it works great. Almost too great and I don't understand why. Here is the issue I have a collection of pictures. When I look at those pictures in anything else beit Windows Explorer, Corel Photoshop or anything else, some of the pictures are rotated and appear to be on their side. And yet in every case whenever I load that picture into a cImageContainer it ALWAYS displays it correctly rotated for viewing. I then turned off peImageStyle and it style somehow magically transforms the image to a correctly rotated rendering. I don't understand how that is happening.

    2. I noticed wwhen peImageStyle is not set and pbShowScrollbars is set to True, the horizontal scroll bar shows but does not work.... only the vertical scrollbar is functional.

    M

  2. #2
    Join Date
    Feb 2009
    Location
    South Florida
    Posts
    4,644

    Default Re: A couple of things

    the rotation probably has to do with meta data and how different programs handle it

    an image has an actual physical orientation the way the data is saved. In addition cameras record orientation data in the meta data telling programs how to rotate the image for proper viewing

    some software automatically handles this for you, some programs do not or have options for it
    Michael Salzlechner
    StarZen Technologies, Inc
    http.://www.starzen.com

    Development Blog
    http://www.salzlechner.com/dev

    DataFlex Package Manager (aka Nuget for DataFlex)
    http://windowsdeveloper.com/dfPackage

  3. #3
    Join Date
    Feb 2009
    Location
    Castlegar, BC Canada
    Posts
    4,086

    Default Re: A couple of things

    Thank you Michael.

    I've never noticed this before ... so must the the meta data info that automatically corrects this.

  4. #4
    Join Date
    Feb 2009
    Location
    South Florida
    Posts
    4,644

    Default Re: A couple of things

    the meta data is just a set of properties like 'what orientation did the user hold the camera', gps coordinates, name of photographer etc

    then it depends on the program opening the image what it does with it
    Michael Salzlechner
    StarZen Technologies, Inc
    http.://www.starzen.com

    Development Blog
    http://www.salzlechner.com/dev

    DataFlex Package Manager (aka Nuget for DataFlex)
    http://windowsdeveloper.com/dfPackage

  5. #5
    Join Date
    Feb 2009
    Location
    Castlegar, BC Canada
    Posts
    4,086

    Default Re: A couple of things

    Thanks Michael

    I wasn't aware that that sort of information was in the meta data. First thing that I've learned all week ( so far)

  6. #6
    Join Date
    Feb 2009
    Location
    South Florida
    Posts
    4,644

    Default Re: A couple of things

    google EXIF

    it contains things like the camera manufacturer and model, the lens used, focal length, aperture, shutter speed, ISO etc

    all this is used by imaging apps to apply lens corrections, auto rotation, GPS location tagging
    Michael Salzlechner
    StarZen Technologies, Inc
    http.://www.starzen.com

    Development Blog
    http://www.salzlechner.com/dev

    DataFlex Package Manager (aka Nuget for DataFlex)
    http://windowsdeveloper.com/dfPackage

  7. #7
    Join Date
    Feb 2009
    Location
    Castlegar, BC Canada
    Posts
    4,086

    Default Re: A couple of things

    Thanks Mike

  8. #8
    Join Date
    Feb 2009
    Location
    Hengelo, Netherlands
    Posts
    9,673

    Default Re: A couple of things

    Mike,

    The Graphics Library has a function - and it is used in the demo too - to read all EXIF properties of an image. Standard EXIF and Manufacturer custom ones.
    Regards,
    Data Access Worldwide
    Vincent Oorsprong

  9. #9
    Join Date
    Feb 2009
    Location
    Adelaide, South Australia, Down under
    Posts
    2,491

    Default Re: A couple of things

    Hi Mike

    Vincent did a demo once on retrieving and displaying this information in a DataFlex application.

    Not sure if it’s in the downloads.

    Cheers
    Marco
    Marco Kuipers
    DataFlex Consultant
    28 IT Pty Ltd - DataFlex Specialist Consultancy
    Adelaide, South Australia
    www.28it.com.au

  10. #10
    Join Date
    Feb 2009
    Location
    Castlegar, BC Canada
    Posts
    4,086

    Default Re: A couple of things

    It makes sense that all of that detail is tracked... I just never thought about it or realized it!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •