Template::Plugin::GD::Constants - Interface to GD module constants
[% USE gdc = GD.Constants %]
# --> the constants gdc.gdBrushed, gdc.gdSmallFont, gdc.GD_CMP_IMAGE
# are now available
[% FILTER null;
USE gdc = GD.Constants;
USE im = GD.Image(200,100);
black = im.colorAllocate(0 ,0, 0);
red = im.colorAllocate(255,0, 0);
r = im.string(gdc.gdLargeFont, 10, 10, "Large Red Text", red);
im.png | stdout(1);
END;
-%]
See Template::Plugin::GD::Image and GD for further examples and details.
Lincoln D. Stein wrote the GD.pm interface to the GD library.
The GD.pm interface is copyright 1995-2000, Lincoln D. Stein.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
|
Закладки на сайте Проследить за страницей |
Created 1996-2025 by Maxim Chirkov Добавить, Поддержать, Вебмастеру |