/*
  ArtToSpr Artworks/Draw to Sprite convertor
  Copyright (c) 1998 Tony Houghton

  This source is distributed under the GPL. Please see the file
  "COPYING" for details.
*/

#include "flex.h"

#include "drawfile.h"

#include "draw.h"


_kernel_oserror *draw_render(picture *pic, const picture_matrix *trfm,
                             const BBox *clip)
{
  return drawfile_render(0, pic->data, flex_size(&pic->data),
                         (Transform *) trfm, (BBox *) clip, 0);
}

_kernel_oserror *draw_bbox(picture *pic, const picture_matrix *trfm,
                           BBox *result)
{
  return drawfile_bbox(0, pic->data, flex_size(&pic->data),
                       (Transform *) trfm, result);
}
