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 11:12:40


Hi there, you are overriding b's view member when calling a.Crop(0, 0,
10, 10, b) with a's view. They both have different dimensions, but
there are pointing to the same memory. I don't really understand why
you have a class "Image" with an gil::image and gil::view members. I
would not have a gil::view member but would create one when I need
one.

Also, do you really need to have Image class? Isn't gil::image enough
for your purposes?

Christian


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