Sanger::Graphics::Renderer::gif

Location: /ensembl-draw/modules/Sanger/Graphics/Renderer/gif.pm
Source code · Permalink
No superclasses
No subclasses

Overview

);

Method

Unknown

  • add_canvas_frame
  • init_canvas
  • render_Circle
  • render_Ellipse
  • render_Intron
  • render_Line
  • render_Poly
  • render_Rect
  • render_Sprite
  • tile
Documentation coverage: 29 %

Methods

    canvas



    View source

    colour



    View source

    render_Composite







    View source

    render_Text




    my ($cx, $cy) = $glyph->pixelcentre(); my $xpt = $glyph->{'pixelx'} + ( $glyph->{'halign'} eq 'left' ? 0 : $glyph->{'halign'} eq 'right' ? 1 : 0.5 ) * $glyph->{'pixelwidth'}; my $X = GD::Text::Align->new( $self->{'canvas'}, 'valign' => $glyph->{'valign'} || 'center', 'halign' => $glyph->{'halign'} || 'center', 'colour' => $colour, 'font' => "$self->{'ttf_path'}$font.ttf", 'ptsize' => $glyph->ptsize(), 'text' => $glyph->text() );. $X->draw( $xpt, $cy, $glyph->angle()||0 );
    View source