June 22, 2024, 08:19:54 PM

News:

IonicWind Snippit Manager 2.xx Released!  Install it on a memory stick and take it with you!  With or without IWBasic!


OPENWINDOWS and SHOWIMAGE

Started by ChanTerra, April 24, 2009, 10:52:17 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

ChanTerra

Hi,
when using: "OPENWINDOW w1,0,0,350,350,@SIZE|@NOAUTODRAW,0,"Image viewer",&mainwindow"
from Image viewer example, the picture loaded in the form is persistent but a getpixel returns a -1 value when the coordonates of the point are out of the form (the scalable form can still show the picture in totality when maximised).

The same instruction: "OPENWINDOW w1,0,0,350,350,@SIZE,0,"Image viewer",&mainwindow" without the @NOAUTODRAW option show only a part of the picture when maximised (the right part is missing). The get pixel returns a good information even if the point is out of the form (but the picture is only partially described)

I would like to have a persistent image, in its totality and right information in the getpixel instruction even when the point is out of form

bitmap = LoadImage(filename,@IMGSCALABLE )
ShowImage w1,bitmap,@IMGSCALABLE ,x,y

Some ideas ? (the picture is a W&B .bmp, 200dpi, A4 format)

Thanks

Ionic Wind Support Team

ChanTerra,
The image viewer is designed to be a @NOAUTODRAW window, you can't just change one instruction.  It uses @IDPAINT to show and update the image.

And autodrawn window (default), can only show an image as large as your system screen.  So if your image is larger than that you will need to research how to directly read the data contained in an image file using GetBitmapBits.

Contact Sapero by PM, he might be willing to help you along.

Paul Turley
Ionic Wind Software.

Ionic Wind Support Team