Boost logo

Boost Users :

Subject: Re: [Boost-users] [GIL] How can I copy a subimage_view to a view?
From: blp330 (blp330_at_[hidden])
Date: 2009-04-28 12:14:31


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--tp23234549p23280127.html
Sent from the Boost - Users mailing list archive at Nabble.com.

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net