#include <math.h>#include <stdio.h>#include <time.h>#include "agg_basics.h"#include "agg_rendering_buffer.h"#include "agg_conv_transform.h"#include "agg_conv_stroke.h"#include "agg_conv_clip_polyline.h"#include "agg_scanline_p.h"#include "agg_renderer_scanline.h"#include "agg_rasterizer_outline_aa.h"#include "agg_rasterizer_scanline_aa.h"#include "agg_pattern_filters_rgba.h"#include "agg_renderer_outline_aa.h"#include "agg_renderer_outline_image.h"#include "agg_pixfmt_rgb.h"#include "ctrl/agg_slider_ctrl.h"#include "ctrl/agg_bezier_ctrl.h"#include "platform/agg_platform_support.h"Go to the source code of this file.
Classes | |
| class | pattern_src_brightness_to_alpha_rgba8 |
| class | the_application |
Typedefs | |
| typedef agg::pixfmt_bgr24 | pixfmt |
Enumerations | |
| enum | flip_y_e { flip_y = true } |
Functions | |
| int | agg_main (int argc, char *argv[]) |
Variables | |
| static agg::int8u | brightness_to_alpha [256 *3] |
|
|
Definition at line 24 of file line_patterns.cpp. |
|
|
Definition at line 22 of file line_patterns.cpp. 00022 { flip_y = true };
|
|
||||||||||||
|
Definition at line 295 of file line_patterns.cpp. References platform_support::caption(), flip_y, platform_support::img_ext(), platform_support::init(), platform_support::load_img(), platform_support::message(), agg::pix_format_bgr24, platform_support::run(), and agg::window_resize. 00296 { 00297 the_application app(agg::pix_format_bgr24, flip_y); 00298 app.caption("AGG Example. Drawing Lines with Image Patterns"); 00299 00300 if(!app.load_img(0, "1") || 00301 !app.load_img(1, "2") || 00302 !app.load_img(2, "3") || 00303 !app.load_img(3, "4") || 00304 !app.load_img(4, "5") || 00305 !app.load_img(5, "6") || 00306 !app.load_img(6, "7") || 00307 !app.load_img(7, "8") || 00308 !app.load_img(8, "9")) 00309 { 00310 char buf[256]; 00311 sprintf(buf, "There must be files 1%s...9%s\n" 00312 "Download and unzip:\n" 00313 "http://www.antigrain.com/line_patterns.bmp.zip\n" 00314 "or\n" 00315 "http://www.antigrain.com/line_patterns.ppm.tar.gz\n", 00316 app.img_ext(), app.img_ext()); 00317 app.message(buf); 00318 return 1; 00319 } 00320 00321 if(app.init(500, 450, agg::window_resize)) 00322 { 00323 return app.run(); 00324 } 00325 00326 return 1; 00327 }
|
|
|
Definition at line 27 of file line_patterns.cpp. Referenced by pattern_src_brightness_to_alpha_rgba8::pixel(). |