Get the App
SLTechnology News&Howtos  ›  Servers  › 

AGG lesson 34 comparison of rendering efficiency between stroke_aa and outline_aa

Shulou Source: shulou.com Published: 2022-06-02 16:55:15 11月02日 Update

1 rendering code

Void TestStrokeAAPerformance ()

{

Agg::rendering_buffer & rbuf = rbuf_window ()

Agg::pixfmt_bgr24 pixf (rbuf)

Typedef agg::renderer_base renderer_base_type

Renderer_base_type renb (pixf)

Typedef agg::renderer_scanline_aa_solidrenderder_scanline_type

Renderder_scanline_type rensl (renb)

Agg::rasterizer_scanline_aa ras

Agg::scanline_u8 sl

Ras.reset ()

Renb.clear (agg::rgba8 (255255255))

Int nPointX [5] = {20,80,20,80,20,80,20}

Int nPointY [5] = {20, 20, 80, 80, and 20}.

Agg::path_storage ps

Ps.move_to (nPointX [0], nPointY [0])

For (int I = 1; I

Tags: Sawtooth speed function complexity obviousness code time comment viewpoint limitation nuance author pixel actual actually artifact mandatory situation location method Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno vpn macOS Huawei MariaDB NVidia