API 2 Picture.Save

Hi all,

I have to following line of code:
mImage.Save(f,Picture.SaveAsJPEG,Picture.QualityDefault)

Analysing the project, this is the only line existing under “Deprecated” with the note “Save is deprecated”
mImage is an instance of class Picture and f and instance of folderitem. Picture.Save is not documented to be deprecated and if so, how to change it ?

there are some new enumerations

https://documentation.xojo.com/api/graphics/picture.html#picture-save

Thank you. Did change it in many places and didn’t check it here. The message is confusing and should not be “Save is deprecated” but “SaveAsJPEG” is deprecated…

Anyway, my project is now full API 2.0 compliant :wink: