I am trying to declare this function http://msdn.microsoft.com/en-us/library/windows/desktop/ms535401(v=vs.85).aspx.
I am attempting to write my first declare so excuse me if I got a very wrong idea of what OS declares are about but I am trying to declare it like this:
Declare Function Image.RotateFlip Lib "Gdiplus" (RotateFlipType as uint32) as Uint32
msgbox str(RotateFlip(0))
The msgbox is basically for testing if it works.
Thanks
I appear to be able to use GdipImageRotateFlip, without errors, instead of Image.RotateFlip. Might mean i am getting somewhere??
Declare Function GdipImageRotateFlip Lib "GdiPlus" ( handle as Integer, palette as RotateFlipType ) as Status
Enum RotateFlipType:
RotateNoneFlipNone
Rotate90FlipNone
Rotate180FlipNone
Rotate270FlipNone
RotateNoneFlipX
Rotate90FlipX
Rotate180FlipX
Rotate270FlipX
RotateNoneFlipY = 6
Rotate90FlipY = 7
Rotate180FlipY = 4
Rotate270FlipY = 5
RotateNoneFlipXY = 2
Rotate90FlipXY = 3
Rotate180FlipXY = 0
Rotate270FlipXY = 1
Enum Status:
Ok
GenericError
InvalidParameter
OutOfMemory
ObjectBusy
InsufficientBuffer
NotImplemented
Win32Error
WrongState
Aborted
FileNotFound
ValueOverflow
AccessDenied
UnknownImageFormat
FontFamilyNotFound
FontStyleNotFound
NotTrueTypeFont
UnsupportedGdiplusVersion
GdiPlusNotInitialized
PropertyNotFound
PropertyNotSupported
Thanks, how do I grab the picture from this?
[quote=78259:@Alain Bailleul] RotateNoneFlipNone
Rotate90FlipNone
Rotate180FlipNone
Rotate270FlipNone
RotateNoneFlipX
Rotate90FlipX
Rotate180FlipX
Rotate270FlipX
RotateNoneFlipY = 6
Rotate90FlipY = 7
Rotate180FlipY = 4
Rotate270FlipY = 5
RotateNoneFlipXY = 2
Rotate90FlipXY = 3
Rotate180FlipXY = 0
Rotate270FlipXY = 1[/quote]
Is there a quick way to copy and paste enums?
Looking further into this, you better download the “Advanced Graphics for Windows” from Aaron Ballman. (Can’t find a link but it’s included in my ASPE engine that you can download from https://alwaysbusycorner.wordpress.com/2014/03/06/xojorealbasic-abpe-the-physics-engine/
The complete GdiPlus framework is declared in it + you have an example how to use it.
[quote=78264:@Alain Bailleul]Looking further into this, you better download the “Advanced Graphics for Windows” from Aaron Ballman. (Can’t find a link but it’s included in my ASPE engine that you can download from https://alwaysbusycorner.wordpress.com/2014/03/06/xojorealbasic-abpe-the-physics-engine/
The complete GdiPlus framework is declared in it + you have an example how to use it.[/quote]
Thanks
[quote=78264:@Alain Bailleul]Looking further into this, you better download the “Advanced Graphics for Windows” from Aaron Ballman. (Can’t find a link but it’s included in my ASPE engine that you can download from https://alwaysbusycorner.wordpress.com/2014/03/06/xojorealbasic-abpe-the-physics-engine/
The complete GdiPlus framework is declared in it + you have an example how to use it.[/quote]
Wow, I did not know such a thing existed. Is there a Mac and Linux equivalent to ‘Advanced Graphics For Windows’, thanks?
Well, MacOsLib is also included in this download (Quartz 2D) for Mac (Download the Xojo version, not the RB2007R4 version of ABPE). Linux, no idea, but I suspect not.
[quote=78264:@Alain Bailleul]Looking further into this, you better download the “Advanced Graphics for Windows” from Aaron Ballman. (Can’t find a link but it’s included in my ASPE engine that you can download from https://alwaysbusycorner.wordpress.com/2014/03/06/xojorealbasic-abpe-the-physics-engine/
The complete GdiPlus framework is declared in it + you have an example how to use it.[/quote]
How do I get the data from a ‘GdiPlusImage’ as a picture format? Thanks