|
From: Oncaphillis <onc...@sn...> - 2012-12-04 18:58:10
|
The container for a single color value agg::rgba is already representing the channels as double. which aren't actually checked for ranges between 0.0...1.0. rgba8 and rgba16 transform these input values into their proper range (e.g 0..255 or 0..0xffff) in their assignment and copy constructor. One should do the same with a rgbaF data type. if you define your own pixfmt_alpha_blend_rgbF<blender_rgbF<rgbaF, order_rgb>, rendering_buffer> pixfmt_rgbaF You will not need to check the values since everything that gets handed to the blender and pixfmt_rgbaF methods is already checked for proper range. On 12/04/2012 07:06 PM, Jim Crafton wrote: > Were you able to keep color ranges for the component values between > 0..1 or did you have to use the range 0-255? Do I basically just copy > out agg_pixfmt_rgba32/agg_color_rgba8 and replace the bytes with > floats? > > Thanks > > Jim > > On Tue, Dec 4, 2012 at 12:21 PM, Oncaphillis <onc...@sn...> wrote: >> I've created my own CMYK color space by defining my own >> agg_pixfmt_cmyk and agg_color_cmyka >> >> These were the only parts necessary to define all basic operations >> and the memory organization of the color space. >> >> Based on this, I would say it shouldn't be to complicated >> to achive >> >> On 12/04/2012 06:07 PM, Jim Crafton wrote: >>> Has anyone here used AGG with floating point images, i.e. where your >>> pixel would color components would be made of floats instead of >>> unsigned bytes? I found an older email from Maxim (sometime around >>> 2006 before he disappeared) that mentions that it would be an exercise >>> for the reader, that it's not implemented within the library but it >>> should be possible. Anyone have any experience with this? >>> >>> Cheers >>> >>> Jim >>> >>> ------------------------------------------------------------------------------ >>> LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial >>> Remotely access PCs and mobile devices and provide instant support >>> Improve your efficiency, and focus on delivering more value-add services >>> Discover what IT Professionals Know. Rescue delivers >>> http://p.sf.net/sfu/logmein_12329d2d >>> _______________________________________________ >>> Vector-agg-general mailing list >>> Vec...@li... >>> https://lists.sourceforge.net/lists/listinfo/vector-agg-general >> >> ------------------------------------------------------------------------------ >> LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial >> Remotely access PCs and mobile devices and provide instant support >> Improve your efficiency, and focus on delivering more value-add services >> Discover what IT Professionals Know. Rescue delivers >> http://p.sf.net/sfu/logmein_12329d2d >> _______________________________________________ >> Vector-agg-general mailing list >> Vec...@li... >> https://lists.sourceforge.net/lists/listinfo/vector-agg-general > ------------------------------------------------------------------------------ > LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial > Remotely access PCs and mobile devices and provide instant support > Improve your efficiency, and focus on delivering more value-add services > Discover what IT Professionals Know. Rescue delivers > http://p.sf.net/sfu/logmein_12329d2d > _______________________________________________ > Vector-agg-general mailing list > Vec...@li... > https://lists.sourceforge.net/lists/listinfo/vector-agg-general |