#include <stdio.h>#include <stdlib.h>#include <math.h>#include "agg_ellipse.h"#include "agg_trans_affine.h"#include "agg_conv_transform.h"#include "agg_rendering_buffer.h"#include "agg_pixfmt_rgb.h"#include "agg_span_allocator.h"#include "agg_span_image_filter_rgb.h"#include "agg_image_accessors.h"#include "agg_span_interpolator_linear.h"#include "agg_span_converter.h"#include "agg_scanline_u.h"#include "agg_renderer_scanline.h"#include "agg_rasterizer_scanline_aa.h"#include "ctrl/agg_spline_ctrl.h"#include "platform/agg_platform_support.h"Go to the source code of this file.
Namespaces | |
| namespace | agg |
Classes | |
| class | span_conv_brightness_alpha_rgb8 |
| class | the_application |
Enumerations | |
| enum | flip_y_e { flip_y = true } |
Functions | |
| int | agg_main (int argc, char *argv[]) |
|
|
Definition at line 22 of file image_alpha.cpp. 00022 { flip_y = true };
|
|
||||||||||||
|
Definition at line 216 of file image_alpha.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::rbuf_img(), platform_support::run(), and agg::window_resize. 00217 { 00218 the_application app(agg::pix_format_bgr24, flip_y); 00219 app.caption("Image Affine Transformations with Alpha-function"); 00220 00221 const char* img_name = "spheres"; 00222 if(argc >= 2) img_name = argv[1]; 00223 if(!app.load_img(0, img_name)) 00224 { 00225 char buf[256]; 00226 if(strcmp(img_name, "spheres") == 0) 00227 { 00228 sprintf(buf, "File not found: %s%s. Download http://www.antigrain.com/%s%s\n" 00229 "or copy it from another directory if available.", 00230 img_name, app.img_ext(), img_name, app.img_ext()); 00231 } 00232 else 00233 { 00234 sprintf(buf, "File not found: %s%s", img_name, app.img_ext()); 00235 } 00236 app.message(buf); 00237 return 1; 00238 } 00239 00240 if(app.init(app.rbuf_img(0).width(), app.rbuf_img(0).height(), agg::window_resize)) 00241 { 00242 return app.run(); 00243 } 00244 return 0; 00245 }
|