Page 1 of 1

Image in window or dialog

Posted: Mon Sep 28, 2015 1:10 pm
by Wanderson
Hi,

How the best way to display a jpg file in window or dialog with scrollbars and zoon in and zoon out.

Thanks.

Re: Image in window or dialog

Posted: Mon Sep 28, 2015 1:35 pm
by ukoenig
Hello Wanderson,

there are some tools You can test :
I think You will find the infos You need

A painter :

1. any background-combination of Window/Dialog
2. gradient-painter and Image / Brush selector
3. test of function SETGRADIENT ( Grad(B) = Brush or Grad(F) = Function )
4. zoom using Mouseclick, Buttons or Tselex
5. create a PRG- and EXE-file
6. embedded PIXELFORMER to work on a Image
7. GDI-test
8. a included extra Editor, loading the PRG
9. test from CODE or RESOURCE
10. selections are saved/restored to/from INI

viewtopic.php?f=3&t=24453&p=132297&hilit=zoom#p132297

or :

Image centered on defined image.
Alpha on JPG and jpg on jpg ( or other formats )
select any combination of image 1 and image 2

Download ( complete with exe, prg and images ) :
http:((http://www.pflegeplus.com/DOWNLOADS/Center2.zip

Images to be loaded from the subdirectory /IMAGES

Image

Image

Image

best regards
Uwe :D

Re: Image in window or dialog

Posted: Tue Sep 29, 2015 1:38 pm
by Wanderson
Thank you ukoenig!

Work great with jpg file but oImage1:LoadBmp( "SEMIMG" ) do not load a resource image, do you know how?

Re: Image in window or dialog

Posted: Tue Sep 29, 2015 2:14 pm
by ukoenig
You can use :

LoadImage( cResName, cBmpFile )

best regards
Uwe :D

Re: Image in window or dialog

Posted: Wed Sep 30, 2015 7:10 pm
by Wanderson
ukoenig wrote:You can use :

LoadImage( cResName, cBmpFile )

best regards
Uwe :D


Thanks ukoenig