MonobjcMonobjc Documented Class Library
GetCompressionFactor Method (compression, factor)
NamespacesMonobjc.AppKitNSBitmapImageRepGetCompressionFactor(IntPtr, IntPtr)

Returns by indirection the receiver’s compression type and compression factor.

Original signature is '- (void)getCompression:(NSTIFFCompression *)compression factor:(float *)factor'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual void GetCompressionFactor(
	IntPtr compression,
	IntPtr factor
Public Overridable Sub GetCompressionFactor ( _
	compression As IntPtr, _
	factor As IntPtr _
virtual void GetCompressionFactor(
	IntPtr compression, 
	IntPtr factor
compression (IntPtr)
On return, an enum constant that represents the compression type used on the data; it corresponds to one of the values returned by the class method getTIFFCompressionTypes:count:.
factor (IntPtr)
A float value that is specific to the compression type. Many types of compression don’t support varying degrees of compression and thus ignore factor. JPEG compression allows a compression factor ranging from 0.0 to 1.0, with 0.0 being the lowest and 1.0 being the highest.
Version Information
  • Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)

Assembly: Monobjc.AppKit (Module: Monobjc.AppKit)