> I am beginner for AGG. I just tried simple drawing of curves, lines, texts, > image in MM_TEXT mode. > But when i used MM_ANISOTROPIC mode with viewpoet extent as (1,-1), it gave > wrong result. > Is there any solution for this??? > Could u please help me so that i can move further.... Yatin, it all depends on how WinGDI displays images in the MM_ANISOTROPIC mode. The essence of AGG is that you generate an image in memory and then display it with BitBlt or SetDIBitsToDevice. MM_ANISOTROPIC may work bad in this case. You need to generate an image with AGG and display it 1:1 as a pixel map. If you need scaling, Y-flip, etc, use agg::trans_viewport in the pipeline and use MM_TEXT to display the resulting image. Also, you can control the direction of the Y-axis by using positive or negative "stride" values in agg::rendering_buffer.
时间: 2024-12-10 03:17:09