Skip to content

Blend2D

Classes & Records

Name Description
EBlend2DError Type of exception that is raised for Blend2D errors. Exceptions are enabled by default, but can be disabled using BLSetErrorHandler.
TBLApproximationOptions Options used to describe how geometry is approximated.
TBLArc Arc specified as [CX, CY, RX, RY, Start, Sweep] using Double as a storage type.
TBLArray<T> Generic array container.
TBLArray<T>.P A pointer to type T.
TBLArrayView<T> Array view of T.
TBLArrayView<T>.P A pointer to type T.
TBLBitArray BitArray container.
TBLBox Box specified as [X0, Y0, X1, Y1] using Double as a storage type.
TBLBoxI Box specified as [X0, Y0, X1, Y1] using Integer as a storage type.
TBLCircle Circle specified as [CX, CY, R] using Double as a storage type.
TBLConicGradientValues Conic gradient values packed into a structure.
TBLContext Rendering context.
TBLContextCookie Holds an arbitrary 128-bit value (cookie) that can be used to match other cookies. Blend2D uses cookies in places where it allows to "lock" some state that can only be unlocked by a matching cookie. Please don't confuse cookies with a security of any kind, it's just an arbitrary data that must match to proceed with a certain operation.
TBLContextCreateInfo Information that can be used to customize the rendering context.
TBLContextHints Rendering context hints.
TBLEllipse Ellipse specified as [CX, CY, RX, RY] using Double as a storage type.
TBLFile A thin abstraction over a native OS file IO.
TBLFileInfo File information.
TBLFileSystem File-system utilities.
TBLFont Font.
TBLFontData Font data.
TBLFontDesignMetrics Design metrics of a font.
TBLFontFace Font face.
TBLFontFaceInfo Information of TBLFontFace.
TBLFontFeatureItem Associates a font feature tag with a value. Tag describes the feature (as provided by the font) and Value describes its value. Some features only allow boolean values 0 and 1 and some allow values up to 65535. Values less than 0 and greater than 65535 are invalid, however, only -1 should be used as invalid value in general.
TBLFontFeatureSettings Font feature settings.
TBLFontFeatureSettingsView A view unifying the representation of an internal storage used by TBLFontFeatureSettings.
TBLFontManager Font manager.
TBLFontMatrix 2x2 transformation matrix used by TBLFont. It's similar to TBLMatrix2D, however, it doesn't provide a translation part as it's assumed to be zero.
TBLFontMetrics Scaled TBLFontDesignMetrics based on font size and other properties.
TBLFontPanose Font PANOSE classification.
TBLFontPanose.TDecorative
TBLFontPanose.TScript
TBLFontPanose.TSymbol
TBLFontPanose.TText
TBLFontQueryProperties Properties that can be used to query TBLFont and TBLFontFace.
TBLFontTable A read only data that represents a font table or its sub-table.
TBLFontUnicodeCoverage Font unicode coverage.
TBLFontVariationItem Associates a font variation tag with a value.
TBLFontVariationSettings Font variation settings.
TBLFontVariationSettingsView A view unifying the representation of an internal storage used by TBLFontVariationSettings.
TBLFormatInfo Provides a detailed information about a pixel format. Use Query for information of Blend2D native pixel formats.
TBLGlyphBuffer Glyph buffer.
TBLGlyphInfo Contains additional information associated with a glyph used by TBLGlyphBuffer.
TBLGlyphMappingState Character to glyph mapping state.
TBLGlyphPlacement Glyph placement.
TBLGlyphRun TBLGlyphRun describes a set of consecutive glyphs and their placements.
TBLGlyphRunIterator A helper to iterate over a TBLGlyphRun.
TBLGradient Gradient.
TBLGradientStop Defines an Offset and Rgba color that is used by TBLGradient to define a linear transition between colors.
TBLImage 2D raster image.
TBLImageCodec Image codec.
TBLImageData Data that describes a raster image. Used by TBLImage.
TBLImageDecoder Image decoder.
TBLImageEncoder Image encoder.
TBLImageInfo Image information provided by image codecs.
TBLLine Line specified as [X0, Y0, X1, Y1] using Double as a storage type.
TBLLinearGradientValues Linear gradient values packed into a structure.
TBLMatrix2D 2D matrix represents an affine transformation matrix that can be used to transform geometry and images.
TBLObjectCore Base "class" used by all Blend2D objects.
TBLPath 2D vector path.
TBLPathView 2D vector path view provides pointers to vertex and command data along with their size.
TBLPattern Pattern.
TBLPixelConverter Pixel converter.
TBLPixelConverterOptions Pixel conversion options.
TBLPoint Point specified as [X, Y] using Double as a storage type.
TBLPointI Point specified as [X, Y] using Integer as a storage type.
TBLRadialGradientValues Radial gradient values packed into a structure.
TBLRandom Simple pseudo random number generator based on XORSHIFT+, which has 64-bit seed, 128 bits of state, and full period 2^128 - 1.
TBLRange Provides start and end indexes. It has the same semantics as Slices in other programming languages - range is always within [Start, Stop) internal (Start is inclusive, Stop is exclusive). It's used to specify a range of an operation of indexed containers like TBLString, TBLArray, TBLGradient, TBLPath, etc...
TBLRect Rectangle specified as [X, Y, W, H] using Double as a storage type.
TBLRectI Rectangle specified as [X, Y, W, H] using Integer as a storage type.
TBLRgba 128-bit RGBA color stored as 4 32-bit floating point values in [RGBA] order. This record is compatible with Delphi's TAlphaColorF and can be typecase to and from it.
TBLRgba32 32-bit RGBA color (8-bit per component) stored as $AARRGGBB. This record is compatible with Delphi's TAlphaColor and TAlphaColorRec and can be typecast to and from these.
TBLRgba64 64-bit RGBA color (8-bit per component) stored as $AAAARRRRGGGGBBBB.
TBLRoundRect Rounded rectangle specified as [X, Y, W, H, RX, RY] using Double as a storage type.
TBLRuntime Interface to access Blend2D runtime.
TBLRuntimeBuildInfo Blend2D build information.
TBLRuntimeLimits Blend2D runtime limits.
TBLRuntimeResourceInfo Provides information about resources allocated by Blend2D.
TBLRuntimeSystemInfo System information queried by the runtime.
TBLSize Size specified as [W, H] using Double as a storage type.
TBLSizeI Size specified as [W, H] using Integer as a storage type.
TBLString Byte string.
TBLStrokeOptions Stroke options.
TBLTextMetrics Text metrics.
TBLTriangle Triangle data specified as [X0, Y0, X1, Y1, X2, Y2] using Double as a storage type.
TBLVar Blend2D variant.

Types

Name Description
PBLApproximationOptions
PBLArc
PBLBox
PBLBoxI
PBLCircle
PBLConicGradientValues
PBLContextCookie
PBLContextCreateInfo
PBLContextHints
PBLEllipse
PBLFileInfo
PBLFontDesignMetrics
PBLFontFaceInfo
PBLFontFeatureItem
PBLFontFeatureSettingsView
PBLFontMatrix
PBLFontMetrics
PBLFontPanose
PBLFontQueryProperties
PBLFontTable
PBLFontUnicodeCoverage
PBLFontVariationItem
PBLFontVariationSettingsView
PBLFormatInfo
PBLGlyphId
PBLGlyphInfo
PBLGlyphMappingState
PBLGlyphPlacement
PBLGlyphRun
PBLGradientStop
PBLImageData
PBLImageInfo
PBLLine
PBLLinearGradientValues
PBLMatrix2D
PBLPixelConverterOptions
PBLPoint
PBLPointI
PBLRadialGradientValues
PBLRange
PBLRect
PBLRectI
PBLRgba
PBLRgba32
PBLRgba64
PBLRoundRect
PBLRuntimeBuildInfo
PBLRuntimeResourceInfo
PBLRuntimeSystemInfo
PBLSize
PBLSizeI
PBLStrokeOptions
PBLTextMetrics
PBLTriangle
PSize_T
Size_T
TBLBooleanOp Boolean operator (between A and B).
TBLByteOrder Byte order.
TBLCompOp Composition & blending operator.
TBLContextCreateFlag Rendering context creation flags.
TBLContextCreateFlags Rendering context creation flags.
TBLContextErrorFlag Error flags that are accumulated during the rendering context lifetime and that can be queried through TBLContext.AccumulatedErrorFlags. The reason why these flags exist is that errors can happen during asynchronous rendering, and there is no way the user can catch these errors.
TBLContextErrorFlags Error flags that are accumulated during the rendering context lifetime.
TBLContextFlushFlag Rendering context flush flags, used by TBLContext.Flush.
TBLContextFlushFlags Rendering context flush flags, used by TBLContext.Flush.
TBLContextHint Rendering context hint.
TBLContextRenderTextOp The type of a text rendering operation.
TBLContextStyleSlot Describes a rendering context style slot - fill or stroke.
TBLContextStyleSwapMode Specifies the behavior of TBLContext.SwapStyles operation.
TBLContextStyleTransformMode Specifies how style transformation matrix is combined with the rendering context transformation matrix, used by TBLContext.SetStyle function.
TBLContextType Rendering context type.
TBLDataAccessFlags Data access flags.
TBLDataSourceType Data source type.
TBLDataView View of untyped data.
TBLDebugMessageSinkFunc A sink that can be used to debug various parts of Blend2D.
TBLDestroyExternalDataFunc A function callback that is called when an object that holds external data is going to be destroyed. It's often used as a notification that a data passed to a certain object is no longer in use by Blend2D.
TBLErrorHandler Type of procedure that is called when a Blend2D error occurs.
TBLExtendMode Extend mode.
TBLFileInfoFlag File information flags, used by TBLFileInfo.
TBLFileInfoFlags File information flags, used by TBLFileInfo.
TBLFileOpenFlag File open flags.
TBLFileOpenFlags File open flags.
TBLFileReadFlag File read flags used by TBLFileSystem.ReadFile.
TBLFileReadFlags File read flags used by TBLFileSystem.ReadFile.
TBLFileSeekType File seek mode.
TBLFillRule Fill rule.
TBLFlattenMode Mode that specifies how curves are approximated to line segments.
TBLFontDataFlag Flags used by `TBLFontData'.
TBLFontDataFlags Flags used by `TBLFontData'.
TBLFontFaceDiagFlag Diagnostic flags offered by TBLFontFace.
TBLFontFaceDiagFlags Diagnostic flags offered by TBLFontFace.
TBLFontFaceFlag Flags used by TBLFontFace
TBLFontFaceFlags Flags used by TBLFontFace
TBLFontFaceType Type of a font or font face, see TBLFontFace.
TBLFontOutlineType Format of an outline stored in a font.
TBLFontStretch Font stretch.
TBLFontStyle Font style.
TBLFontWeight Font weight.
TBLFormat Pixel format.
TBLFormatFlag Pixel format flags.
TBLFormatFlags Pixel format flags.
TBLFourBytes
TBLGeometryDirection Direction of a geometry used by geometric primitives and paths.
TBLGeometryType Geometry type.
TBLGlyphId Glyph id - a 32-bit unsigned integer.
TBLGlyphPlacementType Placement of glyphs stored in a TBLGlyphRun.
TBLGlyphRunFlag Flags used by TBLGlyphRun.
TBLGlyphRunFlags Flags used by TBLGlyphRun.
TBLGradientKind Gradient type.
TBLGradientQuality Gradient rendering quality.
TBLGradientValue Gradient data index.
TBLHitTest Hit-test result.
TBLImageCodecFeature Image codec feature bits.
TBLImageCodecFeatures Image codec feature bits.
TBLImageInfoFlag Flags used by TBLImageInfo.
TBLImageInfoFlags Flags used by TBLImageInfo.
TBLImageScaleFilter Filter type used by TBLImage.Scale.
TBLModifyOp Modification operation applied to Blend2D containers.
TBLObjectType Object type identifier.
TBLOffsetMode Mode that specifies how to construct offset curves.
TBLOrientation Orientation.
TBLPathCmd Path command.
TBLPathFlag Path flags.
TBLPathFlags Path flags.
TBLPathReverseMode Path reversal mode.
TBLPathSinkFunc Optional callback that can be used to consume a path data.
TBLPatternQuality Pattern quality.
TBLPixelConverterCreateFlag Flags used by TBLPixelConverter.Make function.
TBLPixelConverterCreateFlags Flags used by TBLPixelConverter.Make function.
TBLRenderingQuality Rendering quality.
TBLResult Blend2D result code.
TBLRuntimeBuildType Blend2D runtime build type.
TBLRuntimeCleanupFlag Runtime cleanup flags that can be used through TBLRuntime.Cleanup.
TBLRuntimeCleanupFlags Runtime cleanup flags that can be used through TBLRuntime.Cleanup.
TBLRuntimeCpuArch CPU architecture that can be queried by TBLRuntime.QuerySystemInfo.
TBLRuntimeCpuFeature CPU features Blend2D supports.
TBLRuntimeCpuFeatures CPU features Blend2D supports.
TBLStringView View of UTF8Char[] data used by TBLString.
TBLStrokeCap A presentation attribute defining the shape to be used at the end of open sub-paths.
TBLStrokeCapPosition Position of a stroke-cap.
TBLStrokeJoin Stroke join type.
TBLStrokeTransformOrder Stroke transform order.
TBLTag Tag is a 32-bit integer consisting of 4 bytes (or ASCII characters) in the following format:
TBLTextDirection Text direction.
TBLTextEncoding Text encoding.
TBLTransformKind Transformation matrix type that can be obtained by calling TBLMatrix2D.Kind.
TBLTransformOp Transformation matrix operation type.
TBLUniqueId Unique identifier that can be used for caching purposes.

Routines

Name Description
BLAbs(TBLPoint)
BLAbs(TBLSize)
BLArc
BLBox
BLBoxI
BLCircle
BLClamp
BLConicGradientValues(Double, Double, Double, Double)
BLConicGradientValues
BLEllipse(Double, Double, Double, Double)
BLEllipse(Double, Double, Double)
BLGetLastError Retrieves the last Blend2D error, or TBLResult.Success if there was none.
BLGradientStop(Double, TAlphaColor)
BLGradientStop(Double, TBLRgba64)
BLGradientStop(Double, TBLRgba32)
BLGradientStop
BLLine(Double, Double, Double, Double)
BLLine(TBLPoint, TBLPoint)
BLLinearGradientValues
BLLinearGradientValues(Double, Double, Double, Double)
BLMax(TBLRgba32, TBLRgba32)
BLMax(TBLRgba, TBLRgba)
BLMax(Double, TBLPoint)
BLMax(TBLPoint, Double)
BLMax(TBLPoint, TBLPoint)
BLMax(TBLSize, TBLSize)
BLMax(TBLRgba64, TBLRgba64)
BLMin(TBLRgba64, TBLRgba64)
BLMin(TBLRgba32, TBLRgba32)
BLMin(TBLRgba, TBLRgba)
BLMin(TBLPoint, Double)
BLMin(Double, TBLPoint)
BLMin(TBLSize, TBLSize)
BLMin(TBLPoint, TBLPoint)
BLPoint
BLPointI
BLRadialGradientValues
BLRadialGradientValues(Double, Double, Double, Double, Double, Double)
BLRect
BLRectI
BLRgba(TBLRgba32)
BLRgba(TAlphaColorF)
BLRgba(Single, Single, Single, Single)
BLRgba(TBLRgba64)
BLRgba
BLRgba32(UInt32)
BLRgba32
BLRgba32(TAlphaColorRec)
BLRgba32(Byte, Byte, Byte, Byte)
BLRgba32(TBLRgba64)
BLRgba64
BLRgba64(UInt64)
BLRgba64(Word, Word, Word, Word)
BLRgba64(TBLRgba32)
BLRoundRect(Double, Double, Double, Double, Double)
BLRoundRect(TBLRect, Double, Double)
BLRoundRect(TBLRect, Double)
BLRoundRect(Double, Double, Double, Double, Double, Double)
BLSetErrorHandler Sets a Blend2D error handler.
BLSetExceptionErrorHandler Sets the error handler to a procedure that raises an exception when a Blend2D error occurs. This is the default behavior.
BLSetGetLastErrorHandler Sets the error handler to a procedure that sets a global error variable when a Blend2D error occurs. You can then use BLGetLastError to retrieve this error code.
BLSize
BLSizeI
BLTriangle