News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

Gdi++ combine images

Started by ragdog, November 30, 2015, 12:09:45 AM

Previous topic - Next topic

ragdog

Hello

I Search a Tutorial about gdi++ or code to combine 3 images to a one.

Load images with GdipLoadImageFromFile and draw it on a dc (GdipDrawImageRectI)
now need i an example to combine it 3 images to a one to draw it on dc.

example this my DC



Greets,
Raggy

TouEnMasm

Do it,there is further samples in gdi+ in this forum,32 or 64 bits with images.
Fa is a musical note to play with CL

ragdog

Yes i have first look on this board and examples but not anything found
Then hav i search with google for cpp codes

qWord

A simple example in the attachment.
Remarks that the DrawImage*-Functions are (for whatever reason) slow and not recommendable for fast animations (in this case I would suggest to switch to Direct2D or DX).

regards,
qWord
MREAL macros - when you need floating point arithmetic while assembling!

ragdog

Hello

Thanks qWord for the collection :t

I have solved it is easier as i thought


invoke GdipDrawImageRectI,graphics, pImage, 4, 4,100,100
invoke GdipDrawImageRectI,graphics, pImage2, 40, 40,100,100