Views User Guides > Foundation > Image Processing Filters > IlvBitmapFilter: The Image Processing Class > Using IlvFilteredGraphic to Apply Filter Flows to Graphic Objects
Using IlvFilteredGraphic to Apply Filter Flows to Graphic Objects
The Views foundation package provides a simple way to apply filter flows to graphic objects: the IlvFilteredGraphic class.
This class encapsulates a graphic object and internally computes an IlvBitmapData from the draw method of the object. It then applies a given filter flow to this IlvBitmapData and draws the result on the screen. It is then very easy to add image processing effects to vectorial objects.
Sample code:
IlvZoomableLabel* embosssource = new IlvZoomableLabel(display,
IlvPoint(100, 100),
"Views");
 
embosssource->setForeground(display->getColor((IlvIntensity)(5 * 255),
(IlvIntensity)(5 * 255),
(IlvIntensity)(56 * 255)));
embosssource->setFont(display->getFont("%Helvetica-75-"));
IlvFilteredGraphic* emboss = new IlvFilteredGraphic(display,
embosssource,
"standard.xml#DropShadow",
IlTrue);
Many predefined filter flows are provided in the Views distribution in the $ILVHOME/data/filters directory. You can use them interactively with the Views Studio application.
Published date: 05/24/2022
Last modified date: 02/24/2022