IonicWind Software

IWBasic => General Questions => Topic started by: definitelyokay on February 22, 2011, 02:55:30 PM

Title: RGBA()
Post by: definitelyokay on February 22, 2011, 02:55:30 PM
I have the EBasic starter edition that doesn't have the 3d library, but I need the RGBA function for some GDI+ stuff.

Anyone know what I can do?

Thanks,

Joseph :)
Title: Re: RGBA()
Post by: LarryMc on February 22, 2011, 03:10:19 PM
PM Larry(RockRidge)

LarryMc
Title: Re: RGBA()
Post by: definitelyokay on February 22, 2011, 03:15:43 PM
Well, this works:

Sub ARGB(a As Word, r As Word, g As Word, b As Word), Word
Return (a<<24) + (r<<16) + (g<<8) + b
EndSub


I'm not sure I have anything to tell him?
Title: Re: RGBA()
Post by: LarryMc on February 22, 2011, 03:32:33 PM
Quote from: JosephE on February 22, 2011, 03:15:43 PM
I'm not sure I have anything to tell him?
Nothing since you have solved your problem.

LarryMc