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 22:36:17


Because I want to make a copy of cropped image.

I can do this:

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

a.Crop(0, 0, 100, 100, b); // Now b is copied 100x100 size image from a.

Or

Image a("a.png");
Image *b = a.Crop(0, 0, 100, 100); // This might be another way.

Or

Image a("a.png");
Image b(a, 0, 0, 100, 100);

Whatever, I need a way to copy cropped image from a to b.

So, if I have a rgb8_image_t and a cropped view, how do I assign a view to a
rgb8_image_t?

Thanks for your patient.

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