Change/Add command for DrawImage

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
Michael Vogel
Addict
Addict
Posts: 2798
Joined: Thu Feb 09, 2006 11:27 pm
Contact:

Change/Add command for DrawImage

Post 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.
IdeasVacuum
Always Here
Always Here
Posts: 6426
Joined: Fri Oct 23, 2009 2:33 am
Location: Wales, UK
Contact:

Re: Change/Add command for DrawImage

Post by IdeasVacuum »

+1 I often get into trouble with this :?
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
wilbert
PureBasic Expert
PureBasic Expert
Posts: 3942
Joined: Sun Aug 08, 2004 5:21 am
Location: Netherlands

Re: Change/Add command for DrawImage

Post by wilbert »

-1
The procedures requiring an ImageID allow you to use api created images.
Windows (x64)
Raspberry Pi OS (Arm64)
davido
Addict
Addict
Posts: 1890
Joined: Fri Nov 09, 2012 11:04 pm
Location: Uttoxeter, UK

Re: Change/Add command for DrawImage

Post by davido »

+1
DE AA EB
User avatar
Bisonte
Addict
Addict
Posts: 1308
Joined: Tue Oct 09, 2007 2:15 am

Re: Change/Add command for DrawImage

Post by Bisonte »

wilbert wrote:-1
The procedures requiring an ImageID allow you to use api created images.
Thats the point, so I also disagree...
PureBasic 6.21 (Windows x64) | Windows 11 Pro | AsRock B850 Steel Legend Wifi | R7 9800x3D | 64GB RAM | RTX 5080 | ThermaltakeView 270 TG ARGB | build by vannicom​​
English is not my native language... (I often use DeepL.)
User avatar
Michael Vogel
Addict
Addict
Posts: 2798
Joined: Thu Feb 09, 2006 11:27 pm
Contact:

Re: Change/Add command for DrawImage

Post 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:
Post Reply