
27 Jan
2009
27 Jan
'09
8:25 p.m.
Hi Oliver, I don't get it to compile even when you put the nth_channel_view call inside jpeg_write_view for a simple reason. nth_channel_view needs the reference type of your any_image. But that's not possible since no one knows what image type the any_image actually is. You can cast your any_image to a specific image type using gil's variant::_dynamic_cast member. Then you can use nth_channel_view. Are you sure your code compiles? Let me know if you keep having troubles. Regards, Christian