1{ 2 Free Pascal port of the OpenPTC C++ library. 3 Copyright (C) 2001-2010 Nikolay Nikolov (nickysn@users.sourceforge.net) 4 Original C++ version by Glenn Fiedler (ptc@gaffer.org) 5 6 This library is free software; you can redistribute it and/or 7 modify it under the terms of the GNU Lesser General Public 8 License as published by the Free Software Foundation; either 9 version 2.1 of the License, or (at your option) any later version 10 with the following modification: 11 12 As a special exception, the copyright holders of this library give you 13 permission to link this library with independent modules to produce an 14 executable, regardless of the license terms of these independent modules,and 15 to copy and distribute the resulting executable under terms of your choice, 16 provided that you also meet, for each linked independent module, the terms 17 and conditions of the license of that module. An independent module is a 18 module which is not derived from or based on this library. If you modify 19 this library, you may extend this exception to your version of the library, 20 but you are not obligated to do so. If you do not wish to do so, delete this 21 exception statement from your version. 22 23 This library is distributed in the hope that it will be useful, 24 but WITHOUT ANY WARRANTY; without even the implied warranty of 25 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 26 Lesser General Public License for more details. 27 28 You should have received a copy of the GNU Lesser General Public 29 License along with this library; if not, write to the Free Software 30 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 31} 32 33{ setup } 34function ptc_copy_create: TPTC_COPY; 35procedure ptc_copy_destroy(obj: TPTC_COPY); 36 37{ set source and destination formats } 38procedure ptc_copy_request(obj: TPTC_COPY; source, destination: TPTC_FORMAT); 39 40{ set source and destination palettes } 41procedure ptc_copy_palette(obj: TPTC_COPY; source, destination: TPTC_PALETTE); 42 43{ copy pixels } 44procedure ptc_copy_copy(obj: TPTC_COPY; source_pixels: Pointer; source_x, source_y, source_width, source_height, source_pitch: Integer; 45 destination_pixels: Pointer; destination_x, destination_y, destination_width, destination_height, destination_pitch: Integer); 46 47{ copy option string } 48function ptc_copy_option(obj: TPTC_COPY; option: String): Boolean; 49