[API1 and API2] Picture.Format

How do I code the line below so I will be able to run it on the original API and API2 ?

If myPict.Backdrop.IsExportFormatSupported(Picture.FormatPNG) Then

I tried a string variable (instead of Picture.FormatPNG), but Xojo 2020r1 complains. I tried an Integer variable, same kind of complain.
Done n a #If XojoVersion block…