X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Ftrunk%2Fsrc%2Fmodules%2Fmod_filter%2Fhalftone3.cpp;h=64dd274813a353a7f613b247cbe6c3237e634635;hb=36d01e1527fda602a9aed07d209eb34e6770bca8;hp=62b76d77c88ed33c6d2f88f60492fe6ee8059f9c;hpb=28f28705612902c15cd0702cc891fba35bf2d2df;p=synfig.git diff --git a/synfig-core/trunk/src/modules/mod_filter/halftone3.cpp b/synfig-core/trunk/src/modules/mod_filter/halftone3.cpp index 62b76d7..64dd274 100644 --- a/synfig-core/trunk/src/modules/mod_filter/halftone3.cpp +++ b/synfig-core/trunk/src/modules/mod_filter/halftone3.cpp @@ -5,16 +5,17 @@ ** $Id: halftone3.cpp,v 1.1.1.1 2005/01/04 01:23:10 darco Exp $ ** ** \legal -** Copyright (c) 2002 Robert B. Quattlebaum Jr. +** Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley ** -** This software and associated documentation -** are CONFIDENTIAL and PROPRIETARY property of -** the above-mentioned copyright holder. +** This package is free software; you can redistribute it and/or +** modify it under the terms of the GNU General Public License as +** published by the Free Software Foundation; either version 2 of +** the License, or (at your option) any later version. ** -** You may not copy, print, publish, or in any -** other way distribute this software without -** a prior written agreement with -** the copyright holder. +** This package is distributed in the hope that it will be useful, +** but WITHOUT ANY WARRANTY; without even the implied warranty of +** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +** General Public License for more details. ** \endlegal */ /* ========================================================================= */ @@ -91,7 +92,7 @@ Halftone3::Halftone3() color[1]=Color::green(); color[2]=Color::blue(); } - + set_blend_method(Color::BLEND_STRAIGHT); for(int i=0;i<3;i++) @@ -109,10 +110,10 @@ Halftone3::sync() tone[i].size=size; tone[i].type=type; } - + #define matrix inverse_matrix //float matrix[3][3]; - + if(subtractive) { for(int i=0;i<3;i++) @@ -153,38 +154,38 @@ Halftone3::sync() } #undef matrix - - + + #if 0 // Insert guass-jordan elimination code here int k=0,i=0,j=0,z_size=3; #define A inverse_matrix - - for (k=0;kget_w()); @@ -363,7 +364,7 @@ Halftone3::accelerated_render(Context context,Surface *surface,int quality, cons Surface::pen pen(surface->begin()); Point pos; int x,y; - + if(is_solid_color()) { for(y=0,pos[1]=tl[1];yamount_complete(10000,10000)) return false;