anchor.diff:  
   Function TERRAImage.GetPixelOffset(X,Y:Integer):PColorRGBA;
   Begin
  -  While (X<0) Do
  -    X := X + Width;
  -
  -  If (X>=Width) Then
  -    X := X Mod Width;
  -
  -  While (Y<0) Do
  -    Y := Y + Height;
  -
  -  If (Y>=Height) Then
  -    Y := Y Mod Height;
  +  If (Wrap) Then
  +  Begin
  +    While (X<0) Do
  +      X := X + Width;
  +
  +    If (X>=Width) Then
  +      X := X Mod Width;
  +
  +    While (Y<0) Do
  +      Y := Y + Height;
  +
  +    If (Y>=Height) Then
  +      Y := Y Mod Height;
  +  End Else
  +  Begin
  +    If (X<0) Then X := 0;
  +    If (Y<0) Then Y := 0;
  +
  +    If (X>=Width) Then X := Pred(Width);
  +    If (Y>=Height) Then Y := Pred(Height);
  +  End;
   
     If (_Pixels._Data = Nil) Then
       Result := Nil
  
positive.code:       Function FloodFillInternal(X,Y:Integer; BaseColor,FillColor:ColorRGBA; Threshold:Byte; Span:PByteArray; Count:Integer):Integer;
  
      Public
        Constructor Create(Width, Height:Integer);Overload;
        Constructor Create(Source:TERRAStream);Overload;
        Constructor Create(Location:TERRALocation);Overload;
  
negative.code:   _TransparencyType := imageUnknown;
    _CurrentFrame := MaxInt;
  
    Self.Wrap := True;
    
    _Width := Width;
    _Height := Height;
    _Size := Width * Height * PixelSize;
  