« Return to Thread: Blending and Drawing produce different image..

Re: Using pattern fill with a rgb555 pixel format

by Jim Barry-2 :: Rate this Message:

Reply to Author | View in Thread

Stéphane CHAU wrote:
> Hi everyone.

Hi Stéphane. When asking a question, please start a new thread rather than replying to an existing message.

> When I try the example called "pattern_fill" with the pixel format
> AGG_RGB555 (by uncommenting this macro in the beginning of the
> pattern_fill.cpp file), I can't compile it.
> In fact, the problem is that the class "pixfmt_alpha_blend_rgb_packed"
> has a so called fake order_type.

Yes, span_pattern_rgba only supports unpacked RGBA sources so you'd have to implement your own variant to handle packed formats. However, you can still fill a packed-format destination, as long as the source is unpacked.

- Jim

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Vector-agg-general mailing list
Vector-agg-general@...
https://lists.sourceforge.net/lists/listinfo/vector-agg-general

 « Return to Thread: Blending and Drawing produce different image..