Skip to main content

TdxCustomSmartImage.SaveToStreamByCodec(TStream,TdxSmartImageCodecClass) Method

Saves the stored image to a stream in a specified format.

Declaration

procedure SaveToStreamByCodec(AStream: TStream; ACodec: TdxSmartImageCodecClass); overload;

Parameters

Name Type Description
AStream TStream

The target stream.

ACodec TdxSmartImageCodecClass

The reference to the codec class associated with the target image format.

Remarks

Note

The SaveToStreamByCodec procedure raises an exception if the specified image format codec is not registered or is disabled.

See Also