Design Element
Comment on "Proportional Scaling with NSImage"
by Peter Hosey — Sep 30

Blain: You might also add a BOOL parameter to indicate whether the resize should be letterboxed (largest new size that fits entirely within the rectangle) or clipped (smallest new size that shares at least one of the size members of the destination rectangle).

This is the same choice as the letterboxed vs clipped option on the iPhone and iPod touch when you're watching a widescreen video.

Back to "Proportional Scaling with NSImage"
Design Element

Copyright © Scott Stevenson 2004-2015