get region of interest in fast way
Posted: 2007-11-12T18:50:18-07:00
Hello,
I am new to imagemagick, much api.
How is it possible to get region of interest (defined as, for example, src_left, src_top, src_right, src_bottom) from source image to destination buffer (imagemagick buffer?) (defined as dst_width, dst_height) in format which can be passed to display device (for example, 24 bit BGR) with ability to control subsampling algorithm in the fastest way (no need to save buffer to file)? Is it possible to re-use output buffer (to avoid allocation of same-sized buffer)? This routine intended to be used during custom image rendering with transaformation. (C++)
Final goal is to display several images (and some other own graphics) in one window (refered as device context) with ability, for example, to rotate images (not to rotate whole source buffers).
Thanks.
I am new to imagemagick, much api.
How is it possible to get region of interest (defined as, for example, src_left, src_top, src_right, src_bottom) from source image to destination buffer (imagemagick buffer?) (defined as dst_width, dst_height) in format which can be passed to display device (for example, 24 bit BGR) with ability to control subsampling algorithm in the fastest way (no need to save buffer to file)? Is it possible to re-use output buffer (to avoid allocation of same-sized buffer)? This routine intended to be used during custom image rendering with transaformation. (C++)
Final goal is to display several images (and some other own graphics) in one window (refered as device context) with ability, for example, to rotate images (not to rotate whole source buffers).
Thanks.