
28 Apr
2009
28 Apr
'09
3:12 p.m.
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