Topics
All
MacOS
(Only)
Windows
(Only)
Linux
(Only, Not)
iOS
(Only, Not)
Components
Crossplatform Mac & Win
Server
Client
Old
Deprecated
Guides
Examples
Videos
New in version:
9.3
9.4
9.5
10.0
10.1
10.2
10.3
10.4
10.5
10.6
Statistic
FMM
Blog
GMImage.SetDepth
Sets the Image depth (bits allocated to red/green/blue components)
| Component | Version | macOS | Windows | Linux | Server | FileMaker iOS SDK |
| GraphicsMagick | 2.0 | Yes | Yes | Yes | Yes | Yes |
MBS( "GMImage.SetDepth"; ImageRef; depth ) More
Parameters
| Parameter | Description | Example |
|---|---|---|
| ImageRef | The image reference number. | 1 |
| depth | The bit depth. | 8 |
Result
Returns "OK" on success.
Description
Sets the Image depth (bits allocated to red/green/blue components)See also
- Barcode.Generate
- GMImage.GetDebug
- GMImage.GetDepth
- GMImage.GetWidth
- GMImage.Segment
- GMImage.SetDebug
- GMImage.SetDensity
- GMImage.SetFont
- GMImage.SetMatte
- GMImage.SetType
Release notes
- Version 10.6
- Changed Barcode.Generate to default to 8-bit per channel for the generated image to avoid trouble if receiving software can't handle 16 bit per channel. You can still change with GMImage.SetDepth, e.g. to make a monochrome version.
Created 18th August 2014, last changed 18th August 2014
GMImage.SetDensity - GMImage.SetEXIFOrientation
Feedback: Report problem or ask question.
Links
MBS Xojo Plugins