Platforms to show: All Mac Windows Linux Cross-Platform
TiffPictureMBS class
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | TIFF | MBS Images Plugin | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Bases on libtiff.
- 3 events
- 52 properties
- property BitsPerSample as Integer
- property BytesPerRow as Int64
- property Compression as Integer
- property Copyright as String
- property CurrentDirOffset as Integer
- property CurrentRow as Integer
- property CurrentStrip as Integer
- property CurrentTile as Integer
- property DateTime as String
- property DocumentName as String
- property ExtraSamples as MemoryBlock
- property FillOrder as Integer
- property height as Integer
- property HorizontalPosition as Single
- property HorizontalResolution as Single
- property HostComputer as String
- property ImageDescription as String
- property InputBuffer as String
- property IsBigEndian as Boolean
- property IsByteSwapped as Boolean
- property IsMSB2LSB as Boolean
- property IsTiled as Boolean
- property IsUpSampled as Boolean
- property JPEGQuality as Integer
- property Make as String
- property mask as picture
- property Model as String
- property NumberOfStrips as UInt32
- property NumberOfTiles as UInt32
- property Orientation as Integer
- property OutputBuffer as String
- property PageName as String
- property Photometric as Integer
- property pict as picture
- property PlanarConfig as Integer
- property RasterScanlineSize as UInt64
- property ResolutionUnit as Integer
- property RowsPerStrip as Integer
- property SampleFormat as Integer
- property SamplesPerPixel as Integer
- property Software as String
- property StripSize as UInt64
- property TileRowSize as UInt64
- property TileSize as UInt64
- property Version as Integer
- property VersionString as String
- property VerticalPosition as Single
- property VerticalResolution as Single
- property width as Integer
- property YieldTicks as Integer
- property Scanline(index as Integer, sample as Integer = 0) as memoryblock
- property Scanlines(index as Integer, count as Integer, sample as Integer = 0, lineStepScanlines as Integer = 1, lineStepReturn as Integer = 1) as memoryblock
- 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:
- FolderItem.OpenAsTiffMBS(HeaderOnly as boolean=false) as TiffPictureMBS
Some examples using this class:
- /DynaPDF/Image to PDF/Image to pdf
- /Images/JPEG/Quickly generate previews for JPEG and Tiff
- /Images/LargePicture/PictureMBS rotate benchmark
- /Images/LargePicture/Tiff Load and Save
- /Images/LargePicture/Tiff Load To Channels
- /Images/LCMS2/Convert Grayscale Tiff to SRGB JPEG
- /Images/LCMS2/Convert image to sRGB JPEG
- /Images/LCMS2/Convert Lab Tiff to SRGB JPEG
- /Images/Tiff/BigTiff Test
- /Images/Tiff/RotateBitmapTIFF
Blog Entries
- MBS Xojo Plugins, version 23.2pr1
- MBS Xojo Plugins, version 19.5pr6
- Four ways to save picture as Tiff in Xojo
- MonkeyBread Software Releases the MBS Xojo Plugins in version 19.1
- MBS Xojo Plugins, version 19.1pr2
- MBS Xojo Plugins 18.3
- MBS Xojo Plugins, version 18.3pr1
- Handling errors is important!
- MBS REALbasic plug-in 9.6
- MonkeyBread Software Releases the MBS REALbasic plug-ins 9.2
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
- Added more properties for TiffPictureMBS class.
- 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.