Platforms to show: All Mac Windows Linux Cross-Platform
Back to TiffPictureMBS class.
TiffPictureMBS.SaveImage as boolean
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | TIFF | MBS Images Plugin | 7.4 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Returns true on success and false on any error.
As the data is added to the file and just the reference to the old data is deleted, the filesize will grow.
Calls TIFFReWriteDirectory internally. Same as RewriteDirectory.
TiffPictureMBS.Scanline(index as Integer, sample as Integer = 0) as memoryblock
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| property | TIFF | MBS Images Plugin | 4.2 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Returns nil on any error.
If you set the value, make sure the Memoryblock is big enough. The BytesPerRow functions returns the number of bytes needed.
The data for this property is stored in the Tiff file.
The first scanline has the index of 0.
(Read and Write computed property)
See also:
Some examples using this property:
- /DynaPDF/CMYK Pictures/Create PDF with CMYK
- /Images/LargePicture/CMYK/PictureMBS with CMYK
- /Images/LargePicture/PictureMBS filters
- /Images/LargePicture/PictureMBS rotate benchmark
- /Images/LargePicture/Tiff Load and Save
- /Images/LCMS2/Convert image to sRGB JPEG
- /Images/Tiff/Huge Tiff
- /Images/Tiff/Tiff Combine
- /Images/Tiff/Tiff Copy Test/Tiff Copy Test
- /Images/Tiff/TIFF Split
TiffPictureMBS.Scanline(mem as Ptr, index as Integer, sample as Integer = 0) as boolean
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | TIFF | MBS Images Plugin | 11.0 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Returns false on any error.
Thee Memoryblock must be big enough. The BytesPerRow functions returns the number of bytes needed.
The first scanline has the index of 0.
This is the fastest way to read scanlines. You provide the memoryblock and you can reuse it for all calls to this method for one tiff.
See also:
TiffPictureMBS.Scanlines(index as Integer, count as Integer, sample as Integer = 0, lineStepScanlines as Integer = 1, lineStepReturn as Integer = 1) as memoryblock
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| property | TIFF | MBS Images Plugin | 4.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Returns nil on any error.
If you set the value, make sure the Memoryblock is big enough. The BytesPerRow functions returns the number of bytes needed.
The data for this property is stored in the Tiff file.
The first scanline has the index of 0. Count is the number of scanlines you want to read/write.
If lineStepScanlines is >1, we skip scan lines so we read less data.
If lineStepReturn is >1, we return only every nth row.
If rows can be read with skipping, you should try lineStepScanlines = 2 or more for skipping lines.
If that doesn't work due to tiled data, you can use lineStepReturn = 2 or more.
This skipping is to quicker get preview pictures.
(Read and Write computed property)
Some examples using this property:
TiffPictureMBS.ScanlinesScaled(index as integer, count as integer, sample as integer = 0, scaleFactor as Integer = 1) as memoryblock
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | TIFF | MBS Images Plugin | 19.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Returns nil on any error.
The data for this property is stored in the Tiff file.
The first scanline has the index of 0. Count is the number of scanlines you want to read/write.
If scaleFactor is >1, we scale down and return scaleFactor rows reduced to one row.
This scaling down is to quicker get preview pictures.
Some examples using this method:
TiffPictureMBS.SetColorMap(red as memoryblock, green as memoryblock, blue as memoryblock) as boolean
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | TIFF | MBS Images Plugin | 9.6 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
The memoryblock must be 2^bitspersample * 2 bytes big.
Returns true on success and false on failure.
TiffPictureMBS.SetColorProfile(ProfileData as String) as boolean
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | TIFF | MBS Images Plugin | 7.2 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Returns true on success and false on failure.
TiffPictureMBS.SetData(Tag as Integer, data as string) as boolean
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | TIFF | MBS Images Plugin | 8.5 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
TiffPictureMBS.SetFieldByte(Tag as Integer, value as Integer) as boolean
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | TIFF | MBS Images Plugin | 8.7 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Please look for Tag values in the tiff specification.
Returns true on success.
Please make sure to use the correct setter depending on data type associated with the tag.
TiffPictureMBS.SetFieldDouble(Tag as Integer, value as Double) as boolean
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | TIFF | MBS Images Plugin | 7.0 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Please look for Tag values in the tiff specification.
Returns true on success.
Please make sure to use the correct setter depending on data type associated with the tag.
TiffPictureMBS.SetFieldInteger(Tag as Integer, value as Integer) as boolean
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | TIFF | MBS Images Plugin | 7.0 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Please look for Tag values in the tiff specification.
Returns true on success.
Please make sure to use the correct setter depending on data type associated with the tag.
Some examples using this method:
TiffPictureMBS.SetFieldMemory(Tag as Integer, ItemCount as Integer, data as memoryblock) as boolean
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | TIFF | MBS Images Plugin | 8.7 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
This is the special version of the setter which passes a memoryblock and a count value so you can set an array using this method.
Please look for Tag values in the tiff specification.
Returns true on success.
Please make sure to use the correct setter depending on data type associated with the tag.
Some examples using this method:
TiffPictureMBS.SetFieldShort(Tag as Integer, value as Integer) as boolean
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | TIFF | MBS Images Plugin | 7.0 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Please look for Tag values in the tiff specification.
Returns true on success.
Please make sure to use the correct setter depending on data type associated with the tag.
TiffPictureMBS.SetFieldSingle(Tag as Integer, value as Single) as boolean
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | TIFF | MBS Images Plugin | 8.7 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Please look for Tag values in the tiff specification.
Returns true on success.
Please make sure to use the correct setter depending on data type associated with the tag.
TiffPictureMBS.SetFieldString(Tag as Integer, value as string) as boolean
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | TIFF | MBS Images Plugin | 8.4 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Please look for Tag values in the tiff specification.
Returns true on success.
Please make sure to use the correct setter depending on data type associated with the tag.
You have to pass in the string with the correct encoding.
Some examples using this method:
TiffPictureMBS.SetImageIndex(index as Integer) as boolean
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | TIFF | MBS Images Plugin | 4.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Reads automatically a RGB picture for you, so the pict property is filled on success.
Returns true on success.
Index is zero based.
See also:
TiffPictureMBS.SetImageIndex(index as Integer, HeaderOnly as boolean) as boolean
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | TIFF | MBS Images Plugin | 4.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
If HeaderOnly is false the current picture is read into the pict&mask properties.
Returns true on success.
See also:
TiffPictureMBS.SetXMP(ProfileData as String) as boolean
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | TIFF | MBS Images Plugin | 7.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Returns true on success and false on failure.
The items on this page are in the following plugins: MBS Images Plugin.