
Why not return a view from crop?
On Tue, Apr 28, 2009 at 12:14 PM, blp330
Mm... If I only have rgb8_image_t member, I don't know how to implement Crop method.
void Image::Crop(int x, int y, int width, int height, Image& out) { // Cropped view. rgb8_image_t::view_t view = subimage_view(view(img), x, y, width, height);
out.img = .... // I don't know how to do that... How to assign a view to a image??? }
I need a Image class because I am writing a simple class library for our partner, they are using other languages such as python.
Thanks for your help. -- View this message in context: http://www.nabble.com/-GIL--How-can-I-copy-a-subimage_view-to-a-view--tp2323... Sent from the Boost - Users mailing list archive at Nabble.com.
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users