Boost logo

Boost Users :

Subject: Re: [Boost-users] [GIL] How can I copy a subimage_view to a view?
From: Christian Henning (chhenning_at_[hidden])
Date: 2009-04-28 13:41:23


What is the crop function which takes an image as a parameter suppose to do?

On Tue, Apr 28, 2009 at 12:56 PM, blp330 <blp330_at_[hidden]> wrote:
>
> 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 mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>


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