Idea for ImageLib / SpriteLib

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by MrVainSCL.

Add Features and Description:

"HandleImage (image,x,y)"
Set a new handle location on an existing image.

"MidHandle (image)"
Sets the image handle of the specified image to the middle of the image.

"ResizeImage (image,width#,height#,mode)"
Resizes an image to a new size using pixel values. mode=normal/antialiased

"ScaleImage image,xscale#,yscale#)"
Scales an image to a new size using percentages.

"RotateImage (image,value#)"
Rotates the image counter-clockwise a specific angle.

greetz

MrVainSCL!
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by MrVainSCL.

Hi @ all
Its an very old posting, but i think those commands for IMAGEs and SPIRTEs could be very usefull for game coding i.e.!

What do you think?

PIII450, 256MB Ram, 80GB HD + 6,4 GB, RivaTNT, DirectX8.1, SB AWE64, Win2000 + all Updates...

greetz
MrVainSCL! aka Thorsten
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by MrVainSCL.

Fred,
will you add those commands to a future version?

PIII450, 256MB Ram, 80GB HD + 6,4 GB, RivaTNT, DirectX8.1, SB AWE64, Win2000 + all Updates...

greetz
MrVainSCL! aka Thorsten
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by MrVainSCL.

Mhhhhhh.. nobody here who is coding or want to code a game i.e. and need such Handle() commands for Images nor Sprites????

IF someone of you think this would be usefull commands for game developing (i think so), then please reply... thx

PIII450, 256MB Ram, 80GB HD + 6,4 GB, RivaTNT, DirectX8.1, SB AWE64, Win2000 + all Updates...

greetz
MrVainSCL! aka Thorsten
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by PB.

> Mhhhhhh.. nobody here who is coding or want to code a game i.e. and
> need such Handle() commands for Images nor Sprites????

Well, the ResizeImage command already exists, so you can use that to
resize both to a new pixel size and by percentage... so that's 2 of
your 5 requests completed for you. :)
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by MrVainSCL.

:wink:
I requested those commands for Image and for SPRITE (!) Lib...
A very important and very usefull stuff would be the Handle() stuff for both (Images and Sprites) !!!

PIII450, 256MB Ram, 80GB HD + 6,4 GB, RivaTNT, DirectX8.1, SB AWE64, Win2000 + all Updates...

greetz
MrVainSCL! aka Thorsten
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by PB.

> I requested those commands for Image and for SPRITE (!) Lib...

My mistake, I didn't really notice SpriteLib in the subject, and only
saw image references in the body. But what I said is still valid for
images! :)
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Post by PB »

I'd like to re-request a RotateImage command, considering that we already
have RotateSprite3D; so one for the standard image lib would be nice too.
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
User avatar
Kaeru Gaman
Addict
Addict
Posts: 4826
Joined: Sun Mar 19, 2006 1:57 pm
Location: Germany

Post by Kaeru Gaman »

should be added for normal sprites then aswell.

a Sprite3D is no simple Sprite
the RotateSprite3D is just a texture-function of the grafix card,
the result can only be displayed but not handeled like a 2D sprite,
thus, the comparison is not fitting.
a RotateImage is a completely different thing,
like a RotateSprite2D would be.


...there is a code by S.M. somewhere, he wrote an ASM-tuned routine for 2Dsprites and Images.
oh... and have a nice day.
Post Reply