When was Graphics.Clip Introduced?

I have some code I’m updating but I want to keep backwards compatible.

In the old code written before graphics.Clip was introduced, I created a picture into which I drew my stuff, and then drew the picture into the actual graphics context.

Besides being a waste of memory, that approach is less than ideal (or needs to be drawn 2X ) for retina displays. Basically I want to change the code (using #if RBVersion) to Clip after it was introduced and pictures before that.

The language reference only mentions when Graphics.Clip was enhanced (well I considered it a bug fix :wink: ) in 2011r2, but not when it was originally introduced.

So does anybody know in what version Graphics.Clip was introduced?

Thanks,

  • Karen

looks like 2007r3?

Thanks,

  • Karen

Pick an example and benchmark both approaches before deciding that Graphics.Clip is more efficient, time or memory wise. At some point, the clipping work (those copies you’re counting) has to get done. It wouldn’t surprise me if a well coded explicit copy routinely beat Graphics.Clip on both metrics.