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:56:46


Because I need to wrap GIL's type from my library.

I need this:

Image a("a.png");
Image b;

a.Crop(0, 0, 100, 100, b);

if I return view, it will look like this:

Image a("a.png");
boost::gil::view v = a.Crop(0, 0, 100, 100);

But only Image class is exported from my library for other languages to use.

I know that is just for my purpose, I need to know a way to assign a view to
image to implement Crop method if I only have rgb8_image_t member or to know
a way to copy view.

Thank you very much.

-- 
View this message in context: http://www.nabble.com/-GIL--How-can-I-copy-a-subimage_view-to-a-view--tp23234549p23281536.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