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 12:26:35


Why not return a view from crop?

On Tue, Apr 28, 2009 at 12:14 PM, blp330 <blp330_at_[hidden]> wrote:
>
> 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 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