Sign in Join
FPDoc Onlineexperiment

TTiffImage class

In unit Graphics

Implements support for the TIFF (Tag Image File Format) graphic format.

Declaration

pascal
TTiffImage = class(TFPImageBitmap)

Inheritance

  1. TTiffImage
  2. TFPImageBitmap
  3. TCustomBitmap
  4. TRasterImage
  5. TGraphic
  6. TPersistent
  7. TObject

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

ArtistpublicPerson who created the image.
CopyrightpublicCopyright notice for the image.
DateTimepublicDate and time the image was created.
DocumentNamepublicName of the document from which the image was scanned.
HostComputerpublicThe computer and/or operating system where the image was created.
ImageDescriptionpublicA string that describes the subject of the image.
MakepublicThe scanner manufacturer.
ModelpublicThe scanner model name or number.
ResolutionUnitpublicThe unit of measurement for XResolution and YResolution.
SoftwarepublicName and version number for the software used to create the image.
XResolutionpublicNumber of pixels in ResolutionUnits for the image width.
YResolutionpublicNumber of pixels in ResolutionUnits for the image height.

Methods

InitializeReaderprotectedInitializes the FCL-compatible image reader for the image.
InitializeWriterprotectedInitializes the FCL-compatible image writer for the image.
FinalizeReaderprotectedCaptures values from the image reader after loading an image.
GetReaderClassprotectedGets the class reference used to create new instances of the FCL-compatible image reader.
GetWriterClassprotectedGets the class reference used to create new instances of the FCL-compatible image writer.
GetSharedImageClassprotectedGets the class reference used to create new shared image instances in the class.
CreatepublicConstructor for the class instance.
GetFileExtensionspublicGets 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.