Oddly Shaped Images

Just starting out? Need help? Post your questions and find answers here.
User avatar
DarkRookie
User
User
Posts: 20
Joined: Wed Nov 24, 2010 5:47 pm

Oddly Shaped Images

Post by DarkRookie »

I try to do something with hexagon images in a Window
I want to select an ImageGadget() only if if the hexagon is underneath and not the transparent outside that surrounds it.

I have tried searching for a way but either it hasn't been asked before or my google-fu is failing me.

I am hoping for the answer to platform agnostic and hopefully demo friendly.

Thanks in advance
It is better to have a dumb question than a wrong answer!
User avatar
Demivec
Addict
Addict
Posts: 4260
Joined: Mon Jul 25, 2005 3:51 pm
Location: Utah, USA

Re: Oddly Shaped Images

Post by Demivec »

Here's an example.
User avatar
DarkRookie
User
User
Posts: 20
Joined: Wed Nov 24, 2010 5:47 pm

Re: Oddly Shaped Images

Post by DarkRookie »

I tried using that and I am getting an error of:

Line 4: Structure not found: POINT

when I do. Am I missing something?
It is better to have a dumb question than a wrong answer!
User avatar
Demivec
Addict
Addict
Posts: 4260
Joined: Mon Jul 25, 2005 3:51 pm
Location: Utah, USA

Re: Oddly Shaped Images

Post by Demivec »

DarkRookie wrote:I tried using that and I am getting an error of:

Line 4: Structure not found: POINT

when I do. Am I missing something?
You may be compiling on a non-windows OS. If you are using a windows OS then the structure POINT is predefined.

In any case just define it yourself by placing this at the beginning of the code:

Code: Select all

Structure POINT
  x.l
  y.l
EndStructure
User avatar
DarkRookie
User
User
Posts: 20
Joined: Wed Nov 24, 2010 5:47 pm

Re: Oddly Shaped Images

Post by DarkRookie »

Thanks that work. I should be able to do something with that.
Funny thing is I am using Win 7 U x64
It is better to have a dumb question than a wrong answer!
Foz
Addict
Addict
Posts: 1359
Joined: Tue Nov 13, 2007 12:42 pm
Location: Manchester, UK

Re: Oddly Shaped Images

Post by Foz »

I believe the demo versions don't have the structures and other api built in either.

Think of it as an "incentive" ;)
Post Reply