<!-- saved from url=(0071)http://www.antigrain.com/doc/basic_renderers/basic_renderers.agdoc.html -->
<html><head><meta http-equiv="Content-Type" content="text/html; charset=GBK"><title>Anti-Grain Geometry - Basic Renderers</title>
<meta http-equiv="Content-Type" content="text/html">
<link rel="stylesheet" type="text/css" href="./Anti-Grain Geometry - Basic Renderers_files/agg.styles.css">
</head>
<body><a name="PAGE_BASIC_RENDERERS"><b></b></a>
<table width="640px" height="1px" border="0" cellspacing="0" cellpadding="0" style="margin:0px;">
<tbody><tr>
<td bgcolor="#583927"></td>
</tr>
</tbody></table>
<table width="640px" border="0" cellspacing="0" cellpadding="0" style="margin:0px;">
<tbody><tr>
<td>
<table width="170px" border="0" cellspacing="0" cellpadding="0" style="margin:0px;">
<tbody><tr><td><a href="http://www.antigrain.com/index.html" class="mpmenu">Home/</a></td></tr>
<tr><td><a href="http://www.antigrain.com/doc/index.html" class="mpmenu">Table of Content/</a></td></tr>
<tr><td><a href="" class="mpmenu"></a></td></tr>
<tr><td><a href="" class="mpmenu"></a></td></tr>
<tr><td><a href="" class="mpmenu"></a></td></tr>
<tr><td><a href="" class="mpmenu"></a></td></tr>
</tbody></table>
</td>
<td width="1px" bgcolor="#583927"></td>
<td width="450px" valign="top" style="text-align:right">
<table border="0" cellspacing="0" cellpadding="0" style="margin:0px;">
<tbody><tr>
<td><img src="./Anti-Grain Geometry - Basic Renderers_files/agg_logo.gif" border="0"></td>
</tr>
<tr>
<td>
<table border="0" cellspacing="0" cellpadding="0" style="margin:0px;">
<tbody><tr height="15px">
<td> <a class="topmenu" href="http://www.antigrain.com/news/index.html">News</a> </td>
<td width="1px" bgcolor="#8e521d"></td>
<td> <a class="topmenu" href="http://www.antigrain.com/doc/index.html">Docs</a> </td>
<td width="1px" bgcolor="#8e521d"></td>
<td> <a class="topmenu" href="http://www.antigrain.com/download/index.html">Download</a> </td>
<td width="1px" bgcolor="#8e521d"></td>
<td> <a class="topmenu" href="http://www.antigrain.com/maillist/index.html">Mailing List</a> </td>
<td width="1px" bgcolor="#8e521d"></td>
<td> <a class="topmenu" href="http://www.antigrain.com/cvs/index.html">CVS</a> </td>
</tr>
</tbody></table>
</td>
</tr>
</tbody></table>
</td>
</tr>
</tbody></table>
<table width="640px" height="1px" bgcolor="#583927" border="0" cellspacing="0" cellpadding="0" style="margin:0px;"><tbody><tr><td></td></tr></tbody></table>
<table width="640px"><tbody><tr><td style="text-align:justify"><p>
</p></td></tr></tbody></table>
<table width="640px"><tbody><tr><td><h1>Basic Renderers<span class="subtitle"><br>Getting Started with Simple Console Applications</span></h1></td></tr></tbody></table>
<table class="toc" width="640px"><tbody><tr><td>
<div style="margin-left:2em; padding:3px; font-size:14px;"><a href="http://www.antigrain.com/doc/basic_renderers/basic_renderers.agdoc.html#toc0001"><b>Rendering Buffer</b></a>
<div style="margin-left:2em; font-size:12px;"><a href="http://www.antigrain.com/doc/basic_renderers/basic_renderers.agdoc.html#toc0002">The First and the Simplest Example</a></div>
<div style="margin-left:2em; font-size:12px;"><a href="http://www.antigrain.com/doc/basic_renderers/basic_renderers.agdoc.html#toc0003">Class rendering_buffer</a></div>
<div style="margin-left:2em; font-size:12px;"><a href="http://www.antigrain.com/doc/basic_renderers/basic_renderers.agdoc.html#toc0004">Two Modifications of the Example</a></div></div>
<div style="margin-left:2em; padding:3px; font-size:14px;"><a href="http://www.antigrain.com/doc/basic_renderers/basic_renderers.agdoc.html#toc0005"><b>Pixel Format Renderers</b></a>
<div style="margin-left:2em; font-size:12px;"><a href="http://www.antigrain.com/doc/basic_renderers/basic_renderers.agdoc.html#toc0006">Creation</a></div>
<div style="margin-left:2em; font-size:12px;"><a href="http://www.antigrain.com/doc/basic_renderers/basic_renderers.agdoc.html#toc0007">Member Functions</a></div>
<div style="margin-left:2em; font-size:12px;"><a href="http://www.antigrain.com/doc/basic_renderers/basic_renderers.agdoc.html#toc0008">Alpha-Mask Adaptor</a></div></div>
<div style="margin-left:2em; padding:3px; font-size:14px;"><a href="http://www.antigrain.com/doc/basic_renderers/basic_renderers.agdoc.html#toc0009"><b>Basic Renderers</b></a>
<div style="margin-left:2em; font-size:12px;"><a href="http://www.antigrain.com/doc/basic_renderers/basic_renderers.agdoc.html#toc0010">Creation</a></div>
<div style="margin-left:2em; font-size:12px;"><a href="http://www.antigrain.com/doc/basic_renderers/basic_renderers.agdoc.html#toc0011">Member Functions</a></div>
<div style="margin-left:2em; font-size:12px;"><a href="http://www.antigrain.com/doc/basic_renderers/basic_renderers.agdoc.html#toc0012">A common example</a></div></div>
<div style="margin-left:2em; padding:3px; font-size:14px;"><a href="http://www.antigrain.com/doc/basic_renderers/basic_renderers.agdoc.html#toc0013"><b>Primitives and Markers Renderers</b></a>
<div style="margin-left:2em; font-size:12px;"><a href="http://www.antigrain.com/doc/basic_renderers/basic_renderers.agdoc.html#toc0014">Primitives Renderer</a>
<div style="margin-left:2em; font-size:12px;"><a href="http://www.antigrain.com/doc/basic_renderers/basic_renderers.agdoc.html#toc0015">Declaration</a></div>
<div style="margin-left:2em; font-size:12px;"><a href="http://www.antigrain.com/doc/basic_renderers/basic_renderers.agdoc.html#toc0016">Creation</a></div>
<div style="margin-left:2em; font-size:12px;"><a href="http://www.antigrain.com/doc/basic_renderers/basic_renderers.agdoc.html#toc0017">Member functions</a></div></div>
<div style="margin-left:2em; font-size:12px;"><a href="http://www.antigrain.com/doc/basic_renderers/basic_renderers.agdoc.html#toc0018">Marker Renderer</a>
<div style="margin-left:2em; font-size:12px;"><a href="http://www.antigrain.com/doc/basic_renderers/basic_renderers.agdoc.html#toc0019">Declaration</a></div>
<div style="margin-left:2em; font-size:12px;"><a href="http://www.antigrain.com/doc/basic_renderers/basic_renderers.agdoc.html#toc0020">Creation</a></div>
<div style="margin-left:2em; font-size:12px;"><a href="http://www.antigrain.com/doc/basic_renderers/basic_renderers.agdoc.html#toc0021">Member Functions</a></div></div></div>
</td></tr></tbody></table>
<h2>Rendering Buffer<a name="toc0001"></a></h2>
<table width="640px"><tbody><tr><td style="text-align:justify"><p>Here we start with creating a frame buffer in memory and writing it to a file of
the simplest possible raster format. It's <a href="http://netpbm.sourceforge.net/doc/ppm.html"><img src="./Anti-Grain Geometry - Basic Renderers_files/link.gif" border="0">PPM (Portable Pixel Map)</a>. Although, it isn't natively supported by <a href="http://www.microsoft.com/"><img src="./Anti-Grain Geometry - Basic Renderers_files/link.gif" border="0"><b>Microsoft</b></a> Windows,
there are many viewers and converters that can work with it,
for example, <a href="http://www.irfanview.com/"><img src="./Anti-Grain Geometry - Basic Renderers_files/link.gif" border="0">IrfanView (www.irfanview.com)</a>.
All <b>AGG</b> console examples use the P6 256 format, that is RGB, one byte per channel.
We assume that we work with an RGB-buffer in memory organized as follows:</p></td></tr></tbody></table>
<table width="640px"><tbody><tr><td><center><img src="./Anti-Grain Geometry - Basic Renderers_files/pixfmt_rgb24.gif" title="" border="0"><br><i></i></center></td></tr></tbody></table>
<h3>The First and the Simplest Example<a name="toc0002"></a></h3>
<table width="640px"><tbody><tr><td style="text-align:justify"><p>There is the first example, it's in <code>agg2/tutorial/t01_rend
没有合适的资源?快使用搜索试试~ 我知道了~
agg2.5源码+文档
共106个文件
gif:65个
png:22个
jpg:10个
需积分: 16 27 下载量 62 浏览量
2015-06-06
09:14:43
上传
评论
收藏 1.61MB RAR 举报
温馨提示
开源跨平台2d图形库,agg2.5源码+文档
资源推荐
资源详情
资源评论
收起资源包目录
agg2.5源码+文档 (106个子文件)
agg.styles.css 4KB
agg.styles.css 4KB
agg.styles.css 4KB
agg.styles.css 4KB
anti_aliased.gif 76KB
subpixel_accuracy2.gif 41KB
aliased_pix_accuracy.gif 14KB
aliased_subpix_accuracy.gif 14KB
subpixel_accuracy1.gif 13KB
qual_gdip_agg.gif 12KB
lion_outline_s.gif 11KB
scanline_p.gif 11KB
line_thickness.gif 11KB
simple_blur_s.gif 10KB
multi_clip_s.gif 10KB
scanline_u.gif 10KB
agg_logo.gif 9KB
agg_logo.gif 9KB
agg_logo.gif 9KB
agg_logo.gif 9KB
graph_test_s.gif 9KB
circles_s.gif 8KB
gdip_curves.gif 8KB
subpixel_bresenham.gif 7KB
lion_lens_s.gif 7KB
line_patterns_s.gif 7KB
rasterizers2_s.gif 6KB
freetype_test_s.gif 6KB
perspective_s.gif 6KB
conv_contour_s.gif 6KB
trans_curve2_s.gif 5KB
typical_scheme.gif 5KB
alpha_mask_s.gif 5KB
raster_text_s.gif 5KB
conv_stroke_s.gif 5KB
gpc_test_s.gif 4KB
scanline_boolean2_s.gif 4KB
scanline_boolean_s.gif 4KB
stereo_enlarged.gif 4KB
trans_curve1_s.gif 4KB
conv_dash_marker_s.gif 4KB
alpha_mask3_s.gif 4KB
gamma_ctrl_s.gif 4KB
gamma_correction_s.gif 4KB
component_rendering_s.gif 3KB
pattern_fill_s.gif 3KB
mol_view_s.gif 3KB
pixfmt_rgb24.gif 3KB
aa_demo_s.gif 3KB
idea_s.gif 3KB
image_fltr_graph_s.gif 3KB
trans_polar_s.gif 3KB
rasterizers_s.gif 2KB
stereo_small.gif 2KB
rounded_rect_s.gif 2KB
polymorphic_renderer_s.gif 2KB
dl_amigaos.gif 1KB
dl_win32.gif 1KB
dl_sunos.gif 1KB
dl_irix64.gif 1KB
dl_linux.gif 1KB
rendering_buffer3.gif 1KB
rendering_buffer4.gif 1KB
download.gif 1KB
rendering_buffer1.gif 949B
rendering_buffer2.gif 917B
link.gif 132B
link.gif 132B
link.gif 132B
Anti-Grain Geometry - Basic Renderers.html 148KB
Anti-Grain Geometry - Demo Examples.html 92KB
Anti-Grain Geometry - Introduction.html 32KB
Anti-Grain Geometry - Scanlines and Scanline Renderers.html 9KB
cie_1931.jpg 52KB
examples_s.jpg 10KB
image1_s.jpg 9KB
pattern_resample_s.jpg 9KB
image_filters_s.jpg 8KB
image_resample_s.jpg 8KB
image_transforms_s.jpg 7KB
image_perspective_s.jpg 7KB
alpha_mask2_s.jpg 6KB
pattern_perspective_s.jpg 5KB
gouraud_mesh_s.png 23KB
spectrum_amask2.png 16KB
spectrum_amask1.png 15KB
aa_test_s.png 14KB
gradient_focal_s.png 14KB
image_alpha_s.png 11KB
image_filters2_s.png 10KB
compositing_s.png 10KB
bezier_div_s.png 9KB
compositing2_s.png 9KB
lion_s.png 9KB
gouraud_s.png 8KB
line_patterns_clip_s.png 7KB
rasterizer_compound_s.png 7KB
flash_rasterizer2_s.png 7KB
blur_s.png 7KB
alpha_gradient_s.png 7KB
共 106 条
- 1
- 2
资源评论
fenix232
- 粉丝: 0
- 资源: 7
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功