Hi danilo,
The Extract2 method is specifically defined to reduce the image to a specified rectangle based on inputs for width and height. If you want to have a circular image, I would suggest the following. First off, you should note that you can't create a non-rectangular image. However, you can create a mask of any shape, and set all pixels that are not in the mask to a particular value (white or black, most likely). I would suggest using the Mask method of the CWIMAQVision object to mask the image using a circle. You can then use the FillImage2 method of the same object to fill in everything not in the mask to a value of black or white (or whatever you choose).
For future reference, you can find the IMAQ and Vision function help on your computer. If you go to
Start»Programs»National Instruments»Vision»Documentation»NI Vision you can open the file called
cwimaq.chm. Likewise for IMAQ, you can find the function help under
Start»Programs»National Instruments»Vision»Documentation»NI-IMAQ called
NIIMAQFunctionReference.chm.
Wes Pierce
Principal Engineer
Pierce Controls