ImageKnife v1
Tech Support Questions

Q. I'm using ImageKnife in VB and trying to use the example on page 18 of the manual. It doesn't work!

A. Media Architects let me know there is an error in the manual. Here is the solution:
     picbuf1.filename = ikLoad("myimage.tif", 0, 0)
     picbuf1.filename = "myimage.tif"
     picbuf1.imagenumber = 0 `default
     picbuf1.imageformat = IK_EXTENSION `default
     ikLoad picbuf1

Q. I'm using the scrollbars with ImageKnife, and I need to know how to find out the scrollbar location. How do I do that?

A. Use the ikScreentoImagex and ikScreentoImagey with the picbuf in question and 0 for the Xlocation or Ylocation, and it will return the current value of the scrollbars. (We are sorry that this wasn't documented.) To return an image to a scrolled location, use the ikRepos statement.

Q. I'm using ImageKnife and trying to resize an image, but when I save it, the size has not changed.

A. ImageKnife uses DIB's in memory. If it were to change the attributes of the DIB each time a user resized, scrolled, etc., there would be serious image display problem. ImageKnife therefore just changes the way the DIB appears on the screen. The way to have a re-sized image actually resize is to use the 'AssignMode' and 'ResizeMode' properties of ImageKnife and then 'ikAssign' from a source picbuf to a destination picbuf.

Q. I'm trying to use the ikTwipsToXCoord and ikTwipsToYCoord functions in ImageKnife/VBX 2.0, but they don't exist!

A. Use the Screen.TwipsPerPixelX and Screen.TwipsPerPixelY to duplicate the functionality. To convert from Twips to pixels, devide the Twips value by Screen.TwipsPerPixelX (or Y). To convert from pixels to Twips, multiply the pixel value by Screen.TwipsPerPixelX (or Y). See also the ikScreentoImageX and ikScreentoImageY functions.

Q. Which Twain devices does ImageKnife work with?

A. ImageKnife is fully TWAIN compatible. Therefore, ImageKnife will support any TWAIN feature in a "TWAIN compatible" scanner.

[TECH SUPPORT TOC]

[HOME] [TABLE OF CONTENTS] [SEARCH]