From 46deddcc62784dab47b1f14dda0d802f5f341b18 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sat, 20 Oct 2007 16:17:27 +0000 Subject: Image Stamping patch by Diego (and peach request)- stamps image info into metadata and optionally draws into the frame. This patch includes some changes I made... * use blenders bitmap fonts (rather then own fonts) * select font size * user interface layout changes * Marker as another image stamp option Also added some new API calls BMF_GetFontHeight(font); BMF_DrawStringBuf(...); - so we can draw text into an imbuf's image buffer. get_frame_marker(frame) - get the last marker from the frame. IMB_rectfill_area(...) - fill in an image buffer with a rectangle area of color. TODO - draw stamp info in 3d view, at the moment it just displays in the animation. --- source/blender/imbuf/intern/png.c | 1 + 1 file changed, 1 insertion(+) (limited to 'source/blender/imbuf/intern/png.c') diff --git a/source/blender/imbuf/intern/png.c b/source/blender/imbuf/intern/png.c index bb48ff71bff..c77ff7ea56f 100644 --- a/source/blender/imbuf/intern/png.c +++ b/source/blender/imbuf/intern/png.c @@ -236,6 +236,7 @@ short imb_savepng(struct ImBuf *ibuf, char *name, int flags) iptr = ibuf->img_info; num_text = 0; while (iptr) { + imginfo[num_text].compression = PNG_TEXT_COMPRESSION_NONE; imginfo[num_text].key = iptr->key; imginfo[num_text].text = iptr->value; -- cgit v1.2.3