And paste on another image, and that this image has sandwiched possibility of moving
With the mouse, with the possibility of putting in to fix the image anywhere on
What is the function that use of gdpicturepro4 to copy and paste?
What is the function that I use to move the pasted image with the mouse?
David Ricardo Silva Moura
There are several ways to perform this operation.
The sample I give below uses GetPixelArray1D() & SetPixelArray() methods.
It loads input1.jpg image, copies the rectangle of coordinate (0, 0, 100, 100) into arPixels() buffer then pastles the area to input2.jpg image :
Code: Select all
Dim arPixels() As Long Imaging1.CreateImageFromFile ("input1.jpg") Call Imaging1.GetPixelArray1D(arPixels, 0, 0, 100, 100) Imaging1.CloseNativeImage Imaging1.CreateImageFromFile ("input2.jpg") Call Imaging1.SetPixelArray(arPixels, 0, 0, 100, 100) Call Imaging1.SaveAsJPEG("output.jpg") Imaging1.CloseNativeImage Erase arPixels
Who is online
Users browsing this forum: No registered users and 2 guests