Page 1 of 1

Oddly Shaped Images

Posted: Wed May 23, 2012 2:52 am
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

Re: Oddly Shaped Images

Posted: Wed May 23, 2012 5:19 am
by Demivec
Here's an example.

Re: Oddly Shaped Images

Posted: Wed May 23, 2012 6:07 am
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?

Re: Oddly Shaped Images

Posted: Wed May 23, 2012 7:38 am
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

Re: Oddly Shaped Images

Posted: Wed May 23, 2012 10:57 pm
by DarkRookie
Thanks that work. I should be able to do something with that.
Funny thing is I am using Win 7 U x64

Re: Oddly Shaped Images

Posted: Wed May 23, 2012 11:15 pm
by Foz
I believe the demo versions don't have the structures and other api built in either.

Think of it as an "incentive" ;)