TiffImageCompressionOptions.SetTileSize Method

Sets the size of tiles to use while drawing.

Namespace:  BitMiracle.Docotic.Pdf
Assembly:  BitMiracle.Docotic.Pdf (in BitMiracle.Docotic.Pdf.dll)


public TiffImageCompressionOptions SetTileSize(
	int width,
	int height
Public Function SetTileSize ( 
	width As Integer,
	height As Integer
) As TiffImageCompressionOptions


Type: System.Int32
The width of tiles.
Type: System.Int32
The height of tiles.

Return Value

Type: TiffImageCompressionOptions
The instance used to call the method.


Setting tile size is useful when you want to reduce amount of memory used while drawing.

The library will use tiles only if both width and height of tiles is not zero and is smaller than the page width and height, respectively.

The lower the value, the less memory is used but the overall drawing process will take more time.

The library uses the value of this property as a recommendation only and can use slightly bigger or smaller tiles if needed.

See Also