Restored from previous forum. Originally posted by WolfgangS.
Hi !
I have a suggestion for a new command:
DrawImageRect(ImageID,x,y,rect_x,rect_y,rect_width,rect_height)
image = variable holding the image handle
x = x location on the screen to draw the image
y = y location on the screen to draw the image
rect_x = starting x location within the image to draw
rect_y = starting y location within the image to draw
rect_width = the height of the area to draw
rect_height = the width of the area to draw
This command draws a cut from an image to the given x,y position at the actual destination (e.g. ScreenOutput()). The image ID can be easely obtained by using the UseImage() command from the image library.
What did you think ?
:)WolfgangS
Suggestion: DrawImageRect()
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by SoulTaker.
I wrote a whole lib for Visual Basic that did all of this using a hidden buffer for drawing etc it was written using all most all API code.
I used it for designing all my Visual Basic Custom Controls.
It did a lot like transparent bitmaps writing test at any angle etc.
Sounds like a good project for PureBasic.
Speaking of that is there any source code around that i could get for writing controls in PureBasic FRED! lol
If you all think this is something that you would be interested in let me know and i'll write a low level lib for doing these things.
P.S.
I used this code to build a MP3 Player in vb that would take and skin it using WinAmp skins.
So it was not a toy lib.
Enjoy
Abit BD7-II Raid P4 1.9 gHz 384 Ram Xtasy GFroce 3 TI 200 CD-RW DirectX 9.0 Beta 2 Sound Blaster Live! XP Pro, Registered PureBasic version 3.30 For Windows.
I wrote a whole lib for Visual Basic that did all of this using a hidden buffer for drawing etc it was written using all most all API code.
I used it for designing all my Visual Basic Custom Controls.
It did a lot like transparent bitmaps writing test at any angle etc.
Sounds like a good project for PureBasic.
Speaking of that is there any source code around that i could get for writing controls in PureBasic FRED! lol
If you all think this is something that you would be interested in let me know and i'll write a low level lib for doing these things.
P.S.
I used this code to build a MP3 Player in vb that would take and skin it using WinAmp skins.
So it was not a toy lib.
Enjoy
Abit BD7-II Raid P4 1.9 gHz 384 Ram Xtasy GFroce 3 TI 200 CD-RW DirectX 9.0 Beta 2 Sound Blaster Live! XP Pro, Registered PureBasic version 3.30 For Windows.