Home | History | Annotate | Download | only in deimage

Lines Matching refs:srcImage

117 deImage* deImage_scale (const deImage* srcImage, int dstWidth, int dstHeight)
119 int srcWidth = srcImage->width;
120 int srcHeight = srcImage->height;
121 deImage* result = deImage_create(dstWidth, dstHeight, srcImage->format);
128 float xFloat = (float)(x + 0.5f) / (float)dstWidth * (float)srcImage->width - 0.5f;
129 float yFloat = (float)(y + 0.5f) / (float)dstHeight * (float)srcImage->height - 0.5f;
147 deARGB p00 = deImage_getPixel(srcImage, x0, y0);
148 deARGB p10 = deImage_getPixel(srcImage, x1, y0);
149 deARGB p01 = deImage_getPixel(srcImage, x0, y1);
150 deARGB p11 = deImage_getPixel(srcImage, x1, y1);