Working with tiled images
Working with tiled images
Working with tiled images Render only the necessary tiles of an image in your FxPlug plug-in to improve efficiency.
Overview
Renders in FxPlug 4 are tileable, which means that the input image can be divided into smaller tiles for rendering. This improves the efficiency of your plug-in because the host app only asks for exactly what pixels your plug-in needs to render for each tile, and the plug-in tells the host exactly what pixels your plug-in needs to sample.
Two methods, sourceTileRect(:sourceImageIndex:sourceImages:destinationTileRect:destinationImage:pluginState:at:)) and destinationImageRect(:sourceImages:destinationImage:pluginState:at:)), help define the expected bounds for source and destination textures. These two sets of pixel bounds are sourceTileRect and destinationImageRect. They’re also known as region of interest (ROI) and domain of definition (DOD), respectively, in other rendering technologies like Core Image.