RobLoach/pntr

Draw image rec at destination rect

Opened this issue · 0 comments

pntr_rectangle srcRect = {
.x = i->img.region[0],
.y = i->img.region[1],
.width = i->img.region[2],
.height = i->img.region[3]
};

pntr_draw_image_scaled_rec(dst, image, srcRect, i->x, i->y, (float)i->w / (float)srcRect.width, (float)i->h / (float)srcRect.height, 0, 0, PNTR_FILTER_BILINEAR);