04-13-2011 10:15 AM
I am evaluating how difficult it would be to use an external library for drawing images in LabWindows. The library comes with binaries
only that were generated in MS Visual Studio, so I assume they can be linked loaded into LabWindows.
Are there likely to be linking issues if the external libraries referenence some Microsoft library not included in LabWindows.
Or does LabWindows have the full complement of Microsoft libraries so anything in Visual Studio will link?
There is an API for drawing a image to memory and also drawing an image to a Hardware Device Context.
The question is should I be able to use these functions when linked and called from a labwindows gui app to
first draw the pixmap nd then copy the pixmap to a LabWindows Canvas?
Canvases don't support alpha channels but the library drawing routing uses an alpha channel.
I am newbie to LabWindows.
Here is the Labwindows function that looks like what I should use
Here are the external API functions
04-14-2011
07:09 PM
- last edited on
02-02-2026
09:22 AM
by
Content Cleaner
Samuel,
Yes, you can call DLLs or Assemblies written in other languages in CVI. Check out our FAQ: Using Dynamic Link Libraries with LabWindows/CVI. In particular look at the sections on How Can I Call Third-Party DLLs from LabWindows/CVI and How Can I Use the Windows SDK from LabWindows/CVI. If you can get a bitmap from the DLL you are using, then you should be able to draw it to the canvas using the CanvasDrawBitmap. Take a look at the Alphablend example that ships with CVI for an example of how to use a bitmap with an alpha channel on a canvas.