Passing an ImageSet as a Dictionary entry?

Hi Folks,

I use a dictionary to pass values to a timer-based UI update. Prior to HiDPI, I would pass a standard picture image as a string (MBS function) and then convert it back in the timer (there’s no .PictureValue in a dictionary). However, since we’re no longer dealing with single resolution pictures, how do we pass a .xojo_imageset in such a manner? Should there be a dictionary type of .ImageSetValue?

Thoughts?

Can’t you just use a reference to those ImageSets and store this reference in the Dictionary instead? And when you pull the Value from the Dictionary you access the referenced ImageSet instead?

An “image set” is still a “Picture” it just has many pictures inside it.

Please see imagecount and indexedimage here:

http://documentation.xojo.com/index.php/Picture

Aha! I don’t need to worry about the "variant"ness of the dictionary entry and just use the picture passed directly.

Totally non-obvious :slight_smile:

[quote=370357:@Jason Parsley]An “image set” is still a “Picture” it just has many pictures inside it.

Please see imagecount and indexedimage here:

http://documentation.xojo.com/index.php/Picture[/quote]
It was my thinking that the variant passed had to be on of the .XXXValue options on the receiving end. Just passing and handling the Picture as a picture solved it.

I was overthinking things - again :S