
28 Apr
2009
28 Apr
'09
4:14 p.m.
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.