Re: [Imtoolkit-users] Draw line on a image
Brought to you by:
scuri
From: Antonio S. <sc...@te...> - 2014-07-21 14:24:02
|
Hi, Using the CD library. You can create a CD_IMAGERGB canvas using the existing image buffers. Here is a sample in C: imImage* image = *imImageCreate*(width, height, IM_RGB, IM_BYTE); // Can also call *imImageAddAlpha* if alpha support is wanted cdCanvas* canvas = cdCreateCanvasf(CD_IMAGERGB, "%dx%d %p %p %p", width, height, image->data[0], image->data[1], image->data[2]);cdCanvasLineStyle(canvas, CD_DASHED); cdCanvasLine(canvas, 10, 10, 50, 50); cdKillCanvas(canvas); *imFileImageSave*(file_name, "PNG", image);*imImageDestroy*(image); Best, Scuri On Mon, Jul 21, 2014 at 3:31 AM, Milind Gupta <mil...@gm...> wrote: > Hi, > I am combining some images on a bigger images. How can I draw lines > also on that combined image? > > Thanks, > Milind > > > > ------------------------------------------------------------------------------ > Want fast and easy access to all the code in your enterprise? Index and > search up to 200,000 lines of code with a free copy of Black Duck > Code Sight - the same software that powers the world's largest code > search on Ohloh, the Black Duck Open Hub! Try it now. > http://p.sf.net/sfu/bds > _______________________________________________ > Imtoolkit-users mailing list > Imt...@li... > https://lists.sourceforge.net/lists/listinfo/imtoolkit-users > > |