Page 1 of 1

Zoom Into an Image

Posted: Sun Jan 03, 2016 8:39 am
by jayadevu
Hi,

is there a way to Zoom into an Image. Much like Irfan View or Windows Photos. Any example available ?

Warm regards,

Jayadev

Re: Zoom Into an Image

Posted: Mon Jan 04, 2016 1:39 am
by ndarz
To control graphics, it is best Bos-Taurus. The help is very well detailed

Re: Zoom Into an Image

Posted: Mon Jan 04, 2016 2:45 am
by Rathinagiri
Yes. That is right.

You have to use particularly this function.

Code: Select all

BT_BitmapCopyAndResize (hBitmap, New_Width, New_Height, Mode_Stretch, Algorithm)

Copy and resizes the specified bitmap and returns a handle to the bitmap with the new size.

hBitmap: is a handle to the origin bitmap.

New_Width, New_Height: is the new size of the bitmap image.

Mode_Stretch: sets the mode as the bitmap of origin is adjusts (is stretches or compresses) in the new size bitmap, it is one of the constants: BT_SCALE or BT_STRETCH (defined in BosTaurus.CH). For default Mode_Stretch = BT_STRETCH.

Algorithm: sets the mode as the bitmap is resized, it is one of the constants: BT_RESIZE_COLORONCOLOR, BT_RESIZE_HALFTONE or BT_RESIZE_BILINEAR (defined in BosTaurus.CH). For default Algorithm = BT_RESIZE_HALFTONE.


Re: Zoom Into an Image

Posted: Mon Jan 04, 2016 9:23 am
by jayadevu
Thanks ndarz and Rathinagiri.

Where is the documentation of BosTaurus ?, I am not able to find it in hmg.3.4.0

Warm regards,

Jayadev

Re: Zoom Into an Image

Posted: Thu Jan 07, 2016 1:03 pm
by ndarz
This path is the pdf file.
c:\You_Dir_hmg.3.4.0\DOC\data\HMG_UNICODE_DOC\BosTaurus-FunctionsReferenceGuide.pdf