TTiffImage class
Implements support for the TIFF (Tag Image File Format) graphic format.
Declaration
TTiffImage = class(TFPImageBitmap)Inheritance
Description
TTiffImage is a TFPImageBitmap descendant which implements support for the TIFF (Tag Image File Format) image format.
It is a raster graphics image format. TIFF is widely supported by scanning, faxing, word processing, optical character recognition, image manipulation, desktop publishing, and page-layout applications. TIFF was created for use as a common image format for scanners. Various revisions to the specification have added grayscale and color support to the image format. It is a popular format for deep-color images.
TIFF images use .TIF or .TIFF file extensions, and the MIME types 'image/TIF' or 'image/TIFF'.
TTiffImage implements the class methods from the ancestor class which get FCL TFPCustomImageReaderClass and TFPCustomImageWriterClass instances, as well as the shared graphics class instance for the image format.
TTiffImage has properties which expose values for Baseline Tags in the image data, including:
- Artist
- Copyright
- DateTime
- DocumentName
- HostComputer
- ImageDescription
- Make
- Model
- ResolutionUnit
- Software
- XResolution
- YResolution
See also
Properties
Artist | public | Person who created the image. |
Copyright | public | Copyright notice for the image. |
DateTime | public | Date and time the image was created. |
DocumentName | public | Name of the document from which the image was scanned. |
HostComputer | public | The computer and/or operating system where the image was created. |
ImageDescription | public | A string that describes the subject of the image. |
Make | public | The scanner manufacturer. |
Model | public | The scanner model name or number. |
ResolutionUnit | public | The unit of measurement for XResolution and YResolution. |
Software | public | Name and version number for the software used to create the image. |
XResolution | public | Number of pixels in ResolutionUnits for the image width. |
YResolution | public | Number of pixels in ResolutionUnits for the image height. |
Methods
InitializeReader | protected | Initializes the FCL-compatible image reader for the image. |
InitializeWriter | protected | Initializes the FCL-compatible image writer for the image. |
FinalizeReader | protected | Captures values from the image reader after loading an image. |
GetReaderClass | protected | Gets the class reference used to create new instances of the FCL-compatible image reader. |
GetWriterClass | protected | Gets the class reference used to create new instances of the FCL-compatible image writer. |
GetSharedImageClass | protected | Gets the class reference used to create new shared image instances in the class. |
Create | public | Constructor for the class instance. |
GetFileExtensions | public | Gets the delimited list of file extension(s) for files which support the image format. |
Inherited
From TFPImageBitmap (7)
FinalizeWriter GetMimeType IsFileExtensionSupported IsStreamFormatSupported LazarusResourceTypeValid ReadStream WriteStream
From TCustomBitmap (34)
Assign BitmapHandleAllocated CanShareImage Changed Clear CreateDefaultBitmapHandle Destroy FreeImage FreeMaskHandle GetBitmapHandle GetMaskHandle GetPalette GetPixelFormat GetRawImageDescriptionPtr GetRawImagePtr Handle HandleNeeded HandleType InternalReleaseBitmapHandle InternalReleaseMaskHandle InternalReleasePalette MaskHandleAllocated MaskHandleNeeded Monochrome PaletteAllocated PaletteNeeded RawimageNeeded ReleaseHandle SetHandle SetHandles SetPixelFormat SetSize UnshareImage UpdateHandles
From TRasterImage (47)
ApplyTransparent BeginUpdate BitmapHandle BitmapHandleNeeded Canvas CreateIntfImage Draw EndUpdate FreeSaveStream GetEmpty GetHandle GetHeight GetMasked GetSize GetSupportedSourceMimeTypes GetTransparent GetWidth HandleAllocated LoadFromBitmapHandles LoadFromDevice LoadFromIntfImage LoadFromMimeStream LoadFromRawImage LoadFromStream Mask Masked MaskHandle PixelFormat RawImage ReadData ReleaseBitmapHandle ReleaseMaskHandle ReleasePalette RequestTransparentColor SaveStreamNeeded SaveToStream ScanLine SetBitmapHandle SetHeight SetMasked SetMaskHandle SetTransparent SetTransparentMode SetWidth TransparentColor TransparentMode WriteData
From TGraphic (25)
DefineProperties Empty Equals GetResourceType Height LoadFromClipboardFormat LoadFromClipboardFormatID LoadFromFile LoadFromLazarusResource LoadFromResourceID LoadFromResourceName MimeType Modified OnChange OnProgress Palette PaletteModified Progress SaveToClipboardFormat SaveToClipboardFormatID SaveToFile SetModified SetPalette Transparent Width
From TPersistent (6)
AssignTo FPOAttachObserver FPODetachObserver FPONotifyObservers GetNamePath GetOwner
From TObject (39)
AfterConstruction BeforeDestruction CheckDisposed ClassInfo ClassName ClassNameIs ClassParent ClassType CleanupInstance DefaultHandler DefaultHandlerStr Dispatch DispatchStr Disposed DisposeOf FieldAddress Free FreeInstance GetDisposed GetHashCode GetInterface GetInterfaceByStr GetInterfaceEntry GetInterfaceEntryByStr GetInterfaceTable GetInterfaceWeak GetLastCastErrorInfo InheritsFrom InitInstance InstanceSize MethodAddress MethodName newinstance QualifiedClassName SafeCallException StringMessageTable SystemHasExtendedRTTI ToString UnitName
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
