~ubuntu-branches/ubuntu/breezy/libimage-imlib2-perl/breezy

« back to all changes in this revision

Viewing changes to lib/Image/Imlib2.xs

  • Committer: Bazaar Package Importer
  • Author(s): Don Armstrong
  • Date: 2005-03-03 22:14:36 UTC
  • mto: This revision was merged to the branch mainline in revision 3.
  • Revision ID: james.westby@ubuntu.com-20050303221436-dw8crqm82hs8xag9
Tags: upstream-1.04
ImportĀ upstreamĀ versionĀ 1.04

Show diffs side-by-side

added added

removed removed

Lines of Context:
54
54
                Imlib_Image image;
55
55
 
56
56
                image = imlib_create_image(x, y);
 
57
 
 
58
                imlib_context_set_image(image);
 
59
                imlib_image_set_has_alpha(1);
 
60
 
57
61
                RETVAL = image;
58
62
        }
59
63
        OUTPUT:
561
565
                imlib_image_attach_data_value("quality",NULL,qual,NULL);
562
566
        }
563
567
 
 
568
Image::Imlib2 Imlib2_flip_horizontal(image)
 
569
        Image::Imlib2   image
 
570
 
 
571
        PROTOTYPE: $
 
572
 
 
573
        CODE:
 
574
        {
 
575
                imlib_context_set_image(image);
 
576
                imlib_image_flip_horizontal();
 
577
        }
 
578
 
 
579
Image::Imlib2 Imlib2_flip_vertical(image)
 
580
        Image::Imlib2   image
 
581
 
 
582
        PROTOTYPE: $
 
583
 
 
584
        CODE:
 
585
        {
 
586
                imlib_context_set_image(image);
 
587
                imlib_image_flip_vertical();
 
588
        }
 
589
 
 
590
Image::Imlib2 Imlib2_flip_diagonal(image)
 
591
        Image::Imlib2   image
 
592
 
 
593
        PROTOTYPE: $
 
594
 
 
595
        CODE:
 
596
        {
 
597
                imlib_context_set_image(image);
 
598
                imlib_image_flip_diagonal();
 
599
        }
 
600
 
 
601
 
 
602
int
 
603
Imlib2_has_alpha(image, ...)
 
604
        Image::Imlib2   image
 
605
 
 
606
        PREINIT: 
 
607
        char   value;
 
608
        
 
609
        PROTOTYPE: $;$
 
610
 
 
611
        CODE:
 
612
        {
 
613
                imlib_context_set_image(image);
 
614
 
 
615
                if (items > 1) {
 
616
                  value =  SvTRUE(ST(1))?1:0;
 
617
                  imlib_image_set_has_alpha(value);
 
618
                }
 
619
 
 
620
                RETVAL = imlib_image_has_alpha();
 
621
        }
 
622
 
 
623
        OUTPUT:
 
624
                RETVAL
 
625
 
 
626
 
 
627
 
 
628
 
564
629
MODULE = Image::Imlib2  PACKAGE = Image::Imlib2::Polygon        PREFIX= Imlib2_Polygon_
565
630
 
566
631
Image::Imlib2::Polygon