buffer_to_jpeg


Description:


public bool buffer_to_jpeg (uint8 buffer, ulong len, string buffer_mime, string target) throws Error

This function performs the same operation as file_to_jpeg with the exception that a raw buffer can be used instead providing len and the buffer_mime too.

Parameters:

buffer

Raw buffer representing content to save

len

Length of buffer to use

buffer_mime

MIME type for buffer

target

Output file name (not URI) to save converted content to

Returns:

true if conversion was successful, otherwise false is returned if throws is set.


Namespace: MediaArt
Package: libmediaart-1.0