7.2/10 (17 أصوات )




  • مرات التنزيل: 218
  • متطلبات التشغيل:
  • الحجم:
  • الترخيص:
  • الاصدار : 1.17
  • اضيف في: 2012-11-09 00:00:00
  • اخر تحديث: 11/09/2012
  • الموقع علي الانترنت:






Description




Image::Base is a Perl module for loading, manipulating and saving images.SYNOPSISThis class should not be used directly. Known inheritors are Image::Xbm and Image::Xpm and in see "SEE ALSO" below. use Image::Xpm ; my $i = Image::Xpm->new( -file => 'test.xpm' ) ; $i->line( 1, 1, 3, 7, 'red' ) ; $i->ellipse( 3, 3, 6, 7, '#ff00cc' ) ; $i->rectangle( 4, 2, 9, 8, 'blue' ) ;If you want to create your own algorithms to manipulate images in terms of (x,y,colour) then you could extend this class (without changing the file), like this: # Filename: mylibrary.pl package Image::Base ; # Switch to this class to build on it.  sub mytransform { my $self = shift ; my $class = ref( $self ) || $self ; # Perform your transformation here; might be drawing a line or filling # a rectangle or whatever... getting/setting pixels using $self->xy(). } package main ; # Switch back to the default package.Now if you require mylibrary.pl after you've used Image::Xpm or any other Image::Base inheriting classes then all these classes will inherit your mytransform() method.Product's homepage Requirements:

· Perl









التعليقات علي Image::Base 1.17
اضافة تعليق

تعليقات الفيسبوك

تعليقات الموقع