Exemple #1
0
void wdCanvasPutImageRectMap(cdCanvas* canvas, int iw, int ih, const unsigned char *index, const long *colors, double x, double y, double w, double h, int xmin, int xmax, int ymin, int ymax)
{
  int xr, yr, wr, hr;
  _wWorld2Canvas(canvas, x, y, xr, yr);
  _wWorld2CanvasSize(canvas, w, h, wr, hr);
  cdCanvasPutImageRectMap(canvas, iw, ih, index, colors, xr, yr, wr, hr, xmin, xmax, ymin, ymax);
}
Exemple #2
0
void wdCanvasPutBitmap(cdCanvas* canvas, cdBitmap* image, double x, double y, double w, double h)
{
  int xr, yr, wr, hr;
  _wWorld2Canvas(canvas, x, y, xr, yr);
  _wWorld2CanvasSize(canvas, w, h, wr, hr);
  cdCanvasPutBitmap(canvas, image, xr, yr, wr, hr);
}
Exemple #3
0
void wdCanvasPutImageRectRGBA(cdCanvas* canvas, int iw, int ih, const unsigned char *r, const unsigned char *g, const unsigned char *b, const unsigned char *a, double x, double y, double w, double h, int xmin, int xmax, int ymin, int ymax)
{
  int xr, yr, wr, hr;
  _wWorld2Canvas(canvas, x, y, xr, yr);
  _wWorld2CanvasSize(canvas, w, h, wr, hr);
  cdCanvasPutImageRectRGBA(canvas, iw, ih, r, g, b, a, xr, yr, wr, hr, xmin, xmax, ymin, ymax);
}
Exemple #4
0
Fichier : wd.c Projet : LuaDist/cd
void wdCanvasPutBitmap(cdCanvas* canvas, cdBitmap* image, double x, double y, double w, double h)
{
  int xr, yr, wr, hr;
  assert(canvas);
  if (!_cdCheckCanvas(canvas)) return;

  _wWorld2Canvas(canvas, x, y, xr, yr);
  _wWorld2CanvasSize(canvas, w, h, wr, hr);
  cdCanvasPutBitmap(canvas, image, xr, yr, wr, hr);
}
Exemple #5
0
Fichier : wd.c Projet : LuaDist/cd
void wdCanvasPutImageRectRGB(cdCanvas* canvas, int iw, int ih, const unsigned char *r, const unsigned char *g, const unsigned char *b, double x, double y, double w, double h, int xmin, int xmax, int ymin, int ymax)
{
  int xr, yr, wr, hr;
  assert(canvas);
  if (!_cdCheckCanvas(canvas)) return;

  _wWorld2Canvas(canvas, x, y, xr, yr);
  _wWorld2CanvasSize(canvas, w, h, wr, hr);
  cdCanvasPutImageRectRGB(canvas, iw, ih, r, g, b, xr, yr, wr, hr, xmin, xmax, ymin, ymax);
}