Page 1 of 1

Draw a subrectangle of the image in the format as Librasterworks

Posted: Wed Apr 05, 2023 10:54 pm
by qullarwee
Hello.
I am writing in C. I have a buffer that I drew on with librasterworks, and now I want to draw any of its subrectangles. This cannot be done with SysFn7. I have only one option: to run a two-dimensional loop over the desired subrectangle and do a SetPixel, but I think that would be bad from a performance point of view. Are there any better ways?

Re: Draw a subrectangle of the image in the format as Librasterworks

Posted: Wed Apr 05, 2023 11:05 pm
by dunkaist
Hi qullarwee,

Look at SysFn65. Its params may seem tricky though.

Re: Draw a subrectangle of the image in the format as Librasterworks

Posted: Thu Apr 06, 2023 7:25 pm
by qullarwee
It works. Thank you.