Example Projects
Graphics32 comes with an extensive collection of ready-to-run example applications located in the Examples directory of the repository.
These projects demonstrate key graphics algorithms, rendering techniques, user interaction patterns, and performance optimizations available in the library.
Each example includes complete Delphi (.dpr) and, in most cases also, Lazarus/FPC (.lpi) project files, allowing you to compile, run, and inspect the implementation details directly.
Available Examples
| Example | Demonstrates | Screenshot |
|---|---|---|
| BlendVsMerge | Concept: Pixel blending vs pixel merging Techniques: Alpha compositing, direct pixel arithmetic API: MergeReg, BlendReg, TImage32, TBitmap32 | ![]() |
| PixelCombine | Concept: Porter-Duff alpha composition modes Techniques: Interactive layer blending, custom pixel combination callbacks API: GR32.Blend.Modes.PhotoShop, GR32.Blend.Modes.PorterDuff, TImgView32, TBitmapLayer, TRubberbandLayer, BlendLine, CombineMode, ExecDrawLayers, Graphics32BlendService | |
| TextureBlend | Concept: Color algebra composition modes (Multiply, Screen, Overlay, Add, Subtract) Techniques: Multi-texture composition and custom blend modes API: TImage32, BlendRegEx, Color Algebra, BlendTransfer | ![]() |
| AntiAliasing | Concept: High-quality antialiased line and polygon rendering Techniques: Subpixel accuracy, vector rasterization, polyline and polygon antialiasing API: TPaintBox32, TPolygonRenderer32VPR, PolygonFS, PolyPolygonFS, TLinearGradientPolygonFiller, BuildPolyLine, Circle | ![]() |
| ArrowHead | Concept: Vector path end caps and polygon fillers Techniques: Bezier path decoration and custom line arrowheads API: TFlattenedPath, CurveTo, TArrowHeadAbstract, TLinearGradientPolygonFiller, PolylineFS, PolygonFS, TBitmapPolygonFiller, SegmentIntersect, DashLineFS | ![]() |
| Benchmark | Concept: Polygon rasterizer performance benchmarking Techniques: Comparing different rasterizer back-ends and fill modes API: TCanvas32, TImage32, TStrokeBrush, TSolidBrush, GR32_VPR2, GR32_Polygons.GDI, GR32_Polygons.GDIPlus,, GR32_Polygons.Direct2D, GR32_Polygons.AggLite | ![]() |
| Blurs | Concept: Spatial blur filters (Gaussian, Motion, Selective) Techniques: Multi-pass spatial convolution, box blur approximations, directional filtering API: GR32.Blur, Blur32, MotionBlur, SelectiveGaussianBlur32 | ![]() |
| Clipper | Concept: Polygon Boolean operations and offsetting with Clipper Techniques: Intersection, Union, Difference, XOR, polygon inflating/deflating API: GR32_Clipper, TClipper32 | ![]() |
| CubicSpline | Concept: Cubic Spline Bezier curve construction Techniques: Smooth curve fitting, interactive node control, vector path generation API: TPolygonRenderer32VPR, BuildPolyPolyLine, PolyPolygonFS, TPaintBox32 | ![]() |
| Curves | Concept: Vector path generation and spline curves Techniques: Control point manipulation and stroke styling using TCanvas32API: TCanvas32, TStrokeBrush, TSolidBrush, TDashedBrush, TCustomBrush, TNestedBrush, THammingKernel | ![]() |
| GammaBlur | Concept: Gamma-correct spatial blurring Techniques: sRGB vs linear color space blurring comparisons API: GR32.Blur, GR32_Gamma, Blur32 | ![]() |
| GradFills | Concept: Vector polygon color gradients Techniques: Linear and radial gradient fills with color stops API: TLinearGradientPolygonFiller, TRadialGradientPolygonFiller, TRadialGradientSampler, TSamplerFiller, TColor32Gradient, PolygonFS, PolylineFS, TColor32LookupTable, TFlattenedPath, TextToPath | ![]() |
| GradLines | Concept: Gradient stipple lines and repaint optimization Techniques: Custom line stippling patterns, incremental fading, repaint region tracking API: SetStipple, StippleCounter, StippleStep, TPaintBox32, TBitmap32 | ![]() |
| GradSampler | Concept: Gradient samplers and custom polygon fillers Techniques: Sampler-based vector polygon rendering and color interpolation API: PolygonFS, TPolygonRenderer32VPR, TBarycentricGradientSampler, TDiamondGradientSampler, TRadialGradientSampler, TConicGradientSampler, TXYGradientSampler, TXYSqrtGradientSampler, TInvertedDistanceWeightingSampler, TBarycentricGradientSampler, TVoronoiSampler, TSamplerFiller | ![]() |
| Grow | Concept: Polyline stroke expansion and outline inflation Techniques: Path growing, join and end-cap styling API: Grow, TImage32 | ![]() |
| LineStippling | Concept: Dashed and patterned vector lines Techniques: Stipple pattern definition and phase offset control API: SetStipple, StippleCounter, StippleStep, LineToFSP | ![]() |
| MeshGradients | Concept: Mesh gradients and Delaunay triangulation Techniques: Barycentric color interpolation across triangulated mesh nodes API: PolygonFS, TPolygonRenderer32VPR, TVoronoiSampler, TAdaptiveSuperSampler, TInvertedDistanceWeightingSampler, TGourandShadedDelaunayTrianglesSampler | ![]() |
| Polygons | Concept: Vector polygon rasterization and canvas brush styles Techniques: Stroke/fill brush management and VPR rendering API: TCanvas32, TStrokeBrush, TSolidBrush, TJoinStyle, TPolyFillMode, TBitmapPolygonFiller | ![]() |
| RenderText | Concept: High-quality vector text rendering Techniques: TrueType outline extraction and path rendering API: RenderText, TCanvas32, TSolidBrush, TStrokeBrush, TBitmap32, TImage32 | ![]() |
| Rotated text | Concept: Rotated vector typography Techniques: Affine path transformation and stroke/fill brush rendering API: TAffineTransformation, TCanvas32, TSolidBrush, TStrokeBrush | ![]() |
| ScatterPlot | Concept: Statistical scatter plot visualization Techniques: Rapid antialiased glyph/circle rasterization for large datasets API: TPolygonRenderer32VPR, TImage32 | ![]() |
| Swarm | Concept: Real-time particle animation and vector noise fields Techniques: Particle dynamics driven by 2D Simplex noise with buffer fading API: GR32.Noise.Simplex, TPaintBox32, TBitmap32, GR32_Blend | ![]() |
| TextVPR | Concept: Advanced text layout and ClearType subpixel rendering Techniques: Subpixel LCD antialiasing and paragraph typography API: TPolygonRenderer32LCD, TPolygonRenderer32LCD2, TPolygonRenderer32VPR, TCanvas32, TSolidBrush | ![]() |
| Thick Lines | Concept: Polyline stroke width comparison Techniques: GDI vs Graphics32 line drawing performance benchmarking API: GR32.Lines.Thick, TStrokeBrush, TCanvas32 | ![]() |
| VertexReduction | Concept: Polyline vertex simplification Techniques: Douglas-Peucker point reduction algorithm API: TCanvas32, TStrokeBrush, TPaintBox32 | ![]() |
| Bitmap32 to PSD layers | Concept: Multi-layer Adobe Photoshop file export Techniques: PSD binary file structure encoding and layer composition export API: GR32.ImageFormats.PSD, TBitmap32, TImgView32 | ![]() |
| ByteMaps | Concept: 8-bit intensity mapping and indexed color palettes Techniques: Single-channel byte map storage and color table lookups API: TByteMap, TImgView32, TBitmap32, TLinearResampler, TNearestResampler | ![]() |
| Color Picker | Concept: Custom color selection controls Techniques: HSV/RGB color space conversions and custom UI control painting API: GR32_ColorPicker, GR32_ColorSwatch | ![]() |
| HoverZoom | Concept: Interactive viewport magnification Techniques: Loupe/magnifying glass effect and mouse-tracking viewport layers API: TImage32, TBitmapLayer, TCustomLayer, GR32_PNG | ![]() |
| Image32 background | Concept: Background pattern rendering for TImage32Techniques: Checkerboard background options and custom paint stages API: TImgView32, TBackgroundOptions | ![]() |
| Image32 | Concept: Core features of TImage32Techniques: Image display scale modes, alignment, scrollbars, and resampling kernels API: TImage32, TKernelResampler, TLanczosKernel, TMitchellKernel | ![]() |
| Mandelbrot | Concept: Procedural synthetic fractal generation Techniques: Complex plane fractal calculation, multithreaded rasterization, sampler pipelines API: TMultithreadedRegularRasterizer, TContourRasterizer, TCustomSampler | ![]() |
| Optimized repaint | Concept: Invalidation and repaint optimization Techniques: Visualizing dirty rectangle tracking and selective redraws API: TImage32, TImgView32, TPaintBox32, TBitmapLayer | ![]() |
| Pan & Zoom | Concept: Interactive viewport navigation Techniques: Smooth panning, zooming, and mouse wheel scroll handling in TImgView32API: TImgView32, TImage32 | ![]() |
| PNG Explorer | Concept: Low-level PNG image format inspection Techniques: Chunk parsing (IHDR, PLTE, tRNS, IDAT) and metadata extraction API: GR32_PortableNetworkGraphic, GR32_PNG | ![]() |
| PNG Image32 | Concept: PNG loading and display Techniques: Full alpha channel transparency rendering in UI controls API: GR32_PortableNetworkGraphic, GR32_PNG, TImage32, TBitmap32 | ![]() |
| Rotate | Concept: Affine matrix rotation and scaling Techniques: Direct matrix transformation applied to bitmap contents API: TAffineTransformation, TImage32, GR32_Transforms | ![]() |
| Transparent form | Concept: Per-pixel translucent Windows forms Techniques: Layered window API integration ( UpdateLayeredWindow)API: TBitmapLayer, TImage32, TBitmap32, GR32_Blend | ![]() |
| Bounce | Concept: Animated sprite layers and physics movement Techniques: Time-based animation loops, easing curves, layer translation API: TBitmapLayer, TImage32, TLinearResampler | ![]() |
| ImgView_Layers | Concept: Interactive layer management Techniques: Custom rubberband handles, layer rotation, locking, and hit testing API: TImgView32, TBitmapLayer, TRubberbandLayer, TCustomLayer, TAffineTransformation, PolyPolygonFS | ![]() |
| PSD import export | Concept: Adobe Photoshop (PSD) file import and export Techniques: Mapping Photoshop layer stacks and blend modes to TImgView32API: GR32.ImageFormats.PSD, TBitmapLayer, TImgView32, PolygonFS, PolylineFS | ![]() |
| RotLayer | Concept: Transformed layer rendering Techniques: Layer-level affine transformations with interactive control handles API: TAffineTransformation, TImgView32, TLinearResampler | ![]() |
| Space Invaders | Concept: Retro game arcade mechanics Techniques: Sprite layer management, collision detection, fast frame redrawing API: TBitmapLayer, TImage32, TNearestResampler, TBitmap32 | ![]() |
| Sprites | Concept: High-density sprite layer performance Techniques: Repaint optimization benchmark with thousands of moving sprite layers API: TBitmapLayer, TImage32, TBitmap32, GR32_Transforms | |
| WaterEffect | Concept: Fluid wave and ripple simulation Techniques: Wave propagation buffers, displacement mapping, custom paint stages API: TCustomLayer, TImage32, TBitmap32, TIntegerMap, GR32_OrdinalMaps | ![]() |
| Lion | ![]() | |
| NestedSampling | Concept: Nested sampler pipelines Techniques: Chaining super-samplers, color transformers, and custom rasterizers API: TCustomSampler, TSuperSampler, TContourRasterizer | ![]() |
| PixelF | Concept: Subpixel precision sampling Techniques: Floating-point pixel addressing ( PixelF vs PixelFS)API: PixelF, PixelFS, TImage32, TBitmap32, GR32_Blend | |
| Resamplers | Concept: Bitmap resampling filters Techniques: Comparing resampler kernels (Nearest, Linear, Lanczos, Mitchell, Cubic, Gaussian) API: TLinearResampler, TKernelResampler, TLanczosKernel, TMitchellKernel, TCubicKernel, PolygonFS, PolylineFS | ![]() |
| Resize and Rotate | Concept: Scaled and rotated bitmap resampling Techniques: Combining affine transformations with kernel resamplers and rasterizers API: TAffineTransformation, TKernelResampler, TCubicKernel, TImgView32 | ![]() |
| SharpenConvolution | Concept: Image sharpening filters Techniques: Spatial convolution filtering via kernel samplers API: TLinearResampler, TNearestResampler, TImgView32, TIntegerMap | ![]() |
| ImgWarping | Concept: Non-linear image deformation and warping Techniques: Grid displacement remapping and interactive mesh warp tools API: TRemapTransformation, TVectorMap, TImgView32, TKernelResampler, TSuperSampler | ![]() |
| Perspective Correction | Concept: 3D perspective distortion and quad mapping Techniques: Forward and inverse projective transformations with interactive handles API: TImage32, TProjectiveTransformationEx, TPolygonRubberbandLayer, TLinearResampler, TDraftRasterizer | ![]() |
| Sphere | Concept: 3D spherical projection transformation Techniques: Spherical mapping, interactive Arcball 3D rotation, multithreaded rasterization API: TMultithreadedRegularRasterizer, TDraftRasterizer, TLinearResampler, TPaintBox32, TBitmap32 | ![]() |
| Transform | Concept: Compound transformations Techniques: Chaining affine and non-linear transformations (twirl, skew, rotate, scale) API: TImage32, TAffineTransformation, TKernelResampler | ![]() |
| Visualization | Concept: Real-time audio waveform and spectrum visualization Techniques: High-frequency feedback buffer updating and real-time plotting API: TVectorMap, BlendReg, GR32_LowLevel | ![]() |




















































