anchor.diff:    dstWidth, dstHeight: Word;
     pngData: TKMCardinalArray;
   const
  -  EXPORT_SPRITES_NO_ALPHA = False;
     CANVAS_Y_OFFSET = 14;
   begin
     Result := False;
  
positive.code:     else
        pngData[dstY*dstWidth + dstX] := fRXData.RGBA[aIndex, I*srcWidth + K] and $FFFFFF;
  
      pngData[dstY*dstWidth + dstX] := pngData[dstY*dstWidth + dstX] or (fRXData.RGBA[aIndex, I*srcWidth + K] and $FF000000);
  
      if isShadow and (aExportType = ietBase) then
        pngData[dstY*dstWidth + dstX] := 0;
  
      if EXPORT_SPRITES_NO_ALPHA then
        pngData[dstY*dstWidth + dstX] := pngData[dstY*dstWidth + dstX] or $FF000000;
    end;
  
    //Mark pivot location with a dot
  
negative.code: 
    SetLength(pngData, dstWidth * dstHeight);
  
    {if EXPORT_SPRITES_NO_ALPHA then
      for I := Low(pngData) to High(pngData) do
        pngData[I] := $FFAF6B6B;}
  
    //Shadow export uses a black background
    if aExportType in [ietShadows, ietTeamMask, ietBaseAlpha] then
      for I := Low(pngData) to High(pngData) do
        pngData[I] := $FF000000;
  
  