--- In [email protected], "mockey_a" <[EMAIL PROTECTED]> wrote:
>
> Hi Sean.
> --- In [email protected], "swzoh" <seanzoh@> wrote:
> > Are you using it too?
>
> BTW:
> Did you ever succeed to run a API-function from the dll-plugin that
> uses a BITMAPINFO structure and works with DIBs, like e.g.: GetDIBits
> or CreateDIBSection? I tried this for some time now, without any
> success...
No, I've never used it. I hate graphics :)
Anyway, it seems a struct of a struct and an array.
BTW, two memeber of the struct is (u)short type, and, the members of
the array is of byte type. Needs some caution when dealing with
non-integer, i.e., not 4-byte, types, especially char/byte type.
How did you specified the byte type? It should be ucn or byten, or use
dll.set_char_default("n") ;; it's on my start-up script btw
then can use simply uc or byte.
(I assumed you used just numbers)
Then,
header = dll.create_struct("ui i i uo uo ui ui i i ui ui",...)
rgbquad = dll.create_array(4,"ucn")
bmpinfo = dll.create_struct("t a", header, rgbquad)
Or, I always prefer to do this way, just combining them into a single
struct like:
bmpinfo = dll.create_struct("ui i i uo uo ui ui i i ui ui ;;+
ucn ucn ucn ucn",...)
Are there any differences with what you used?
Sean
Attention: PowerPro's Web site has moved: http://www.ppro.org
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/power-pro/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/