Gets the image decoder associated with specified content type.

Namespace: FirstFloor.Documents.Imaging
Assembly: FirstFloor.Documents (in FirstFloor.Documents.dll) Version: 2.5.0.0 (2.5.1.0)

Syntax

C#
public static bool TryGetImageDecoder(
	string contentType,
	out IImageDecoder decoder
)
Visual Basic
Public Shared Function TryGetImageDecoder ( _
	contentType As String, _
	<OutAttribute> ByRef decoder As IImageDecoder _
) As Boolean
Visual C++
public:
static bool TryGetImageDecoder(
	String^ contentType, 
	[OutAttribute] IImageDecoder^% decoder
)

Parameters

contentType
Type: System..::..String
Type of the content.
decoder
Type: FirstFloor.Documents.Imaging..::..IImageDecoder%
The decoder.

Return Value

A value indicating whether a decoder was found for given content type.

See Also