Page 1 of 1

Change/Add command for DrawImage

Posted: Fri Jun 21, 2013 7:12 pm
by Michael Vogel
(Nearly) all PB functions working with images are using the image number but not the image ID (CopyImage, CreateImage, Grabimage etc.). Wouldn't it be nice to see all functions doing it the same way? I'm using PB for a quite while, so I handle these functions the right way, but I still find it a little bit irritating...

I know, this is a radical change and would need a lot of work adapting old source codes. To reduce this problem, two functions for the same thing (e.g. DrawImage/DrawImageID) could be an idea. Of course, everyone could write his own macros doing the job, but then all these things have to be added to each snippet in the forum etc.

Re: Change/Add command for DrawImage

Posted: Fri Jun 21, 2013 7:16 pm
by IdeasVacuum
+1 I often get into trouble with this :?

Re: Change/Add command for DrawImage

Posted: Fri Jun 21, 2013 7:19 pm
by wilbert
-1
The procedures requiring an ImageID allow you to use api created images.

Re: Change/Add command for DrawImage

Posted: Fri Jun 21, 2013 9:42 pm
by davido
+1

Re: Change/Add command for DrawImage

Posted: Fri Jun 21, 2013 9:48 pm
by Bisonte
wilbert wrote:-1
The procedures requiring an ImageID allow you to use api created images.
Thats the point, so I also disagree...

Re: Change/Add command for DrawImage

Posted: Tue Jun 25, 2013 8:50 am
by Michael Vogel
wilbert wrote:-1
The procedures requiring an ImageID allow you to use api created images.
I know, this is a controversial subject, but as written in the first posting, there are different possibilities to use image handles as well :wink: