export snapshot at DPI

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, LCMark

LCMark
Livecode Staff Member
Livecode Staff Member
Posts: 1235
Joined: Thu Apr 11, 2013 11:27 am

Re: export snapshot at DPI

Post by LCMark »

@monte: Hello :)

Let me see if I can answer your questions...

1) It seems unlikely that fractional dots-per-inch values would be useful, so I suggest using round-to-nearest ( floor(v + 0.5) ) for that value imported into LC.
2) The array properties section controls whether 'the value[key]' syntax works - if a property is not in that range then you can't directly access keys of the array using 'the' syntax. I'll have to check with @runrevali, but I believe this has all been unified in 7.0, so it doesn't really matter at the moment.
3) This is a good point - I think it would be better to document separately - maybe 'metadata_of_field.xml'?
monte
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1564
Joined: Fri Jan 13, 2012 1:47 am
Contact:

Re: export snapshot at DPI

Post by monte »

OK

For 3 do you want me to change the current metadata.xml to metadata_of_field.xml and then add a new metadata_of_image.xml? or just add the metadata_of_image file? I'm not sure how these things are indexed.
LiveCode User Group on Facebook : http://FaceBook.com/groups/LiveCodeUsers/
livecodeali
Livecode Staff Member
Livecode Staff Member
Posts: 194
Joined: Thu Apr 18, 2013 2:48 pm

Re: export snapshot at DPI

Post by livecodeali »

Hi Monte,
I have just pushed a fix to the refactor branch so that it doesn't care anymore if array properties are in that range of the enum. That should sort out any problems there.
LCMark
Livecode Staff Member
Livecode Staff Member
Posts: 1235
Joined: Thu Apr 11, 2013 11:27 am

Re: export snapshot at DPI

Post by LCMark »

@monte: I think renaming them both makes sense - it makes it clear then in the filename what the entry is for. I believe the dictionary is indexed based on the content of the XML files, rather than their filename.
monte
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1564
Joined: Fri Jan 13, 2012 1:47 am
Contact:

Re: export snapshot at DPI

Post by monte »

OK, thanks
LiveCode User Group on Facebook : http://FaceBook.com/groups/LiveCodeUsers/
monte
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1564
Joined: Fri Jan 13, 2012 1:47 am
Contact:

Re: export snapshot at DPI

Post by monte »

LiveCode User Group on Facebook : http://FaceBook.com/groups/LiveCodeUsers/
Locked