Post

Replies

Boosts

Views

Activity

Comment on CIImage.clampedToExtent() doesn't fill some edges
Never mind! The issue I was investigating is actually tied to tiling. If you are working with opaque images one solution would be to crop the image before calling clampedToExtent() to an integral rectangle. You want something similar to what CGRectIntegral() does, except that instead of expanding to the nearest integral coordinates, you shrink inward to make sure only fully opaque pixels fall within the rectangle.
Dec ’23