Image is drawn once only - strange

BlitzMax Forums/MaxGUI Module/Image is drawn once only - strange

Rozek(Posted 2010) [#1]
Hello!

I am currently developing my own TProxyGadgets whose visual appearance is built from overlaying several (sometimes transparent) images (not pixmaps!)

Some images are used in multiple gadgets, others are gadget-specific.

Within every drawing method (invoked through an event hook) I effectively
  setGraphics(CanvasGraphics(Proxy))
  setViewPort(0,0, Width,Height)               ' is this really necessary?

  cls()
    setBlend(ALPHABLEND)
    setColor(255,255,255)
    setScale(1.0,1.0)
    setRotation(0)

    drawImage(<an image>, 0,0)
    <more drawImage invocations>
  flip()

Surprisingly, the result looks as if every image could be drawn exactly once only (if I inhibit the first drawImage for a given image, the second will work, while when reenabling the first invocation the second will fail (i.e. not produce any output) again)

Is this a known "effect"? Do I have to use separate copies of any image for all gadgets? (I thought I could save some memory be re-using images)

[edit]What I forgot: I am using BlitzMAX/MaxGUI 1.38 on an Intel Mac running macOS 10.4.11[/edit]

Thanks in advance for any help!


Rozek(Posted 2010) [#2]
Hmm,

indeed: re-building an image from its pixmap prior to drawing it produces the desired output...

[edit]it looks as if an image's position would be fixed when it is first drawn - because the same image may be used over and over for the same proxy gadget (which means, at the same place)[/edit]

Is this intended? Is it impossible to re-use images multiple times? How resource-consumptive is it to create several images from the same pixmap?