TiffPictureMBS class
Online Documentation - Statistics - FAQ - Plugin Parts (All , Dependencies ) - Class hierarchy
New in Version
22.2
22.3
22.4
22.5
23.0
23.1
23.2
23.3
23.4
23.5
24.0
24.1
The list of the topics ,
classes ,
interfaces ,
controls ,
modules ,
global methods by category ,
global methods by name ,
screenshots ,
licenses
and examples .
Platforms to show: All Mac Windows Linux Cross-Platform
TiffPictureMBS class
A class for a Tiff picture.
Example
Dim p As Picture = LogoMBS (500 )// save tiff file Dim t As New TiffPictureMBSDim file4 As FolderItem = SpecialFolder.Desktop.Child("test4.tif" ) t.Pict = pIf t.Create(file4) Then If t.WriteRGB Then t.Close // ok Else Break End If Else BreakEnd If
Bases on libtiff.
3 events
event Error (libModule as string, message as string)
event Progress (line as Integer, total as Integer)
event Warning (libModule as string, message as string)
52 properties
84 methods
method AddCustomTag (Tag as Integer, FieldReadCount as Integer, FieldWriteCount as Integer, FieldType as Integer, FieldBit as Integer, OkToChange as Integer, PassCount as Integer, FieldName as string) as boolean
method AddImage as boolean
method close
method CombinePictureWithMask as picture
method Create (file as folderitem) as boolean
method Create (file as folderitem, endian as Integer) as boolean
method Create (Path as String, endian as integer = 0) as boolean
method CreateString (Size as Integer) as boolean
method CreateString (Size as Integer, Mode as string) as boolean
method Flush as boolean
method FlushData as boolean
method GetColorMap (byref red as memoryblock, byref green as memoryblock, byref blue as memoryblock) as boolean
method GetColorProfile as string
method GetData (Tag as Integer) as string
method GetField (Tag as Integer, mem as memoryblock) as boolean
method GetFieldByte (Tag as Integer, byref value as Integer) as boolean
method GetFieldCount (Tag as Integer, byref count as Integer, mem as memoryblock) as boolean
method GetFieldDefaultedByte (Tag as Integer, byref value as Integer) as boolean
method GetFieldDefaultedDouble (Tag as Integer, byref value as Double) as boolean
method GetFieldDefaultedInteger (Tag as Integer, byref value as Integer) as boolean
method GetFieldDefaultedShort (Tag as Integer, byref value as Integer) as boolean
method GetFieldDefaultedSingle (Tag as Integer, byref value as Single) as boolean
method GetFieldDefaultedString (Tag as Integer, byref value as String) as boolean
method GetFieldDouble (Tag as Integer, byref value as Double) as boolean
method GetFieldInteger (Tag as Integer, byref value as Integer) as boolean
method GetFieldMemory (Tag as Integer, byref ItemCount as Integer) as memoryblock
method GetFieldShort (Tag as Integer, byref value as Integer) as boolean
method GetFieldSingle (Tag as Integer, byref value as Single) as boolean
method GetFieldString (Tag as Integer, byref value as string) as boolean
method GetXMP as string
method ImageCount as Integer
method ImageIndex as Integer
method IsLastImage as boolean
method MirrorVertical (output as TiffPictureMBS) as boolean
method NextImage as boolean
method NextImage (HeaderOnly as boolean) as boolean
method Open (file as folderitem) as boolean
method Open (file as folderitem, Mode as string) as boolean
method Open (Path as String, Mode as string) as boolean
method OpenString (data as string) as boolean
method OpenString (data as string, Mode as string) as boolean
method RawStripSize (strip as UInt32) as UInt64
method ReadBW as boolean
method ReadBW (left as Integer, top as Integer, width as Integer, height as Integer) as boolean
method ReadEncodedStrip (strip as UInt32, byref data as Memoryblock) as UInt32
method ReadEncodedTile (tile as UInt32, byref data as Memoryblock) as Integer
method ReadPreviewBW as boolean
method ReadPreviewBW (left as Integer, top as Integer, width as Integer, height as Integer) as boolean
method ReadPreviewRGB (ReduceFactor as Integer) as boolean
method ReadRawStrip (strip as UInt32, byref data as Memoryblock) as UInt32
method ReadRawTile (tile as UInt32, byref data as Memoryblock) as Integer
method ReadRGB as boolean
method ReadRGB (byref ErrorMessage as string, Dest as MemoryBlock = nil) as memoryblock
method ReadRGBMemoryBegin (byref ErrorMessage as string) as boolean
method ReadRGBMemoryEnd
method ReadRGBMemoryStep (x as Integer, y as Integer, width as Integer, height as Integer, Dest as MemoryBlock = nil) as memoryblock
method ReadWithLUT (ColorLookupTable() as color) as boolean
method ReadWithLUT (ColorLookupTable() as color, left as Integer, top as Integer, width as Integer, height as Integer) as boolean
method RewriteDirectory as boolean
method SaveImage as boolean
method Scanline (mem as Ptr, index as Integer, sample as Integer = 0) as boolean
method ScanlinesScaled (index as integer, count as integer, sample as integer = 0, scaleFactor as Integer = 1) as memoryblock
method SetColorMap (red as memoryblock, green as memoryblock, blue as memoryblock) as boolean
method SetColorProfile (ProfileData as String) as boolean
method SetData (Tag as Integer, data as string) as boolean
method SetFieldByte (Tag as Integer, value as Integer) as boolean
method SetFieldDouble (Tag as Integer, value as Double) as boolean
method SetFieldInteger (Tag as Integer, value as Integer) as boolean
method SetFieldMemory (Tag as Integer, ItemCount as Integer, data as memoryblock) as boolean
method SetFieldShort (Tag as Integer, value as Integer) as boolean
method SetFieldSingle (Tag as Integer, value as Single) as boolean
method SetFieldString (Tag as Integer, value as string) as boolean
method SetImageIndex (index as Integer) as boolean
method SetImageIndex (index as Integer, HeaderOnly as boolean) as boolean
method SetXMP (ProfileData as String) as boolean
method VStripSize (nrows as UInt32) as UInt64
method VTileSize (nrows as UInt32) as UInt64
method WriteBW as boolean
method WriteEncodedStrip (strip as UInt32, data as Memoryblock, size as Integer = 0) as Integer
method WriteEncodedTile (tile as UInt32, data as Memoryblock, size as Integer = 0) as Integer
method WriteGray as boolean
method WriteRawStrip (strip as UInt32, data as Memoryblock, size as Integer = 0) as Integer
method WriteRawTile (tile as UInt32, data as Memoryblock, size as Integer = 0) as Integer
method WriteRGB as boolean
57 constants
This class has no sub classes.
Some useful global functions for this class:
CombineBitCMYKtoCMYKMBS (dest as TiffPictureMBS, CyanChannel() as Integer, MagentaChannel() as Integer, YellowChannel() as Integer, BlackChannel() as Integer, Files() as FolderItem, scale as Double, width as Integer, height as Integer, X1 as Integer, Y1 as Integer, X2 as Integer, Y2 as Integer, CacheSizeRead as Integer) as Integer
CombineTiff1BitCMYKtoTiffMBS (dest as TiffPictureMBS, CyanChannel() as Integer, MagentaChannel() as Integer, YellowChannel() as Integer, BlackChannel() as Integer, TiffData() as TiffPictureMBS, scale as Double, width as Integer, height as Integer, X1 as Integer, Y1 as Integer, X2 as Integer, Y2 as Integer, ditherMode as Integer = 0) as Integer
CombineTiff1BitCMYKtoTiffMBS (dest as TiffPictureMBS, TiffData as TiffPictureMBS, scalex as Double, scaley as Double, width as Integer, height as Integer, X1 as Integer, Y1 as Integer, X2 as Integer, Y2 as Integer, ditherMode as Integer = 0) as Integer
CombineTiff8BitCMYKtoTiffMBS (dest as TiffPictureMBS, CyanChannel() as Integer, MagentaChannel() as Integer, YellowChannel() as Integer, BlackChannel() as Integer, TiffData() as TiffPictureMBS, scale as Double, width as Integer, height as Integer, X1 as Integer, Y1 as Integer, X2 as Integer, Y2 as Integer, ditherMode as Integer = 0) as Integer
CombineTiffCMYKtoCMYKMBS (dest as TiffPictureMBS, CyanChannel() as Integer, MagentaChannel() as Integer, YellowChannel() as Integer, BlackChannel() as Integer, TiffData() as TiffPictureMBS) as Integer
CombineTiffCMYKtoRGBMBS (dest as TiffPictureMBS, CyanChannel() as Integer, MagentaChannel() as Integer, YellowChannel() as Integer, BlackChannel() as Integer, TiffData() as TiffPictureMBS) as Integer
TIFFStringToTiffPictureMBS (data as string) as TiffPictureMBS
Some methods using this class:
Some examples using this class:
Blog Entries
Xojo Developer Magazine
Release notes
Version 23.2
Fixed a bug in libTiff compilation for Windows 64-bit, which broke TiffPictureMBS reading of tiff.
Version 19.5
Added path variants for Create and Open methods for TiffPictureMBS class.
Version 19.1
Added TiffPictureMBS .ScanlinesScaled function to scale down vertically on reading scanlines.
Changes TiffPictureMBS .Scanlines and ScanlinesScaled to yield.
Version 18.3
Version 17.1
Added options to TiffPictureMBS .Scanlines to read only every nth scanline.
The items on this page are in the following plugins: MBS Images Plugin .
TidyOutputMBS
-
TimerMBS