LEADTOOLS Support
Imaging
Imaging SDK Examples
How to convert BITMAPHANDLE to RasterImage
#1
Posted
:
Monday, April 24, 2006 9:09:42 AM(UTC)
Groups: Registered, Tech Support
Posts: 207
Was thanked: 3 time(s) in 3 post(s)
This example shows how to load an image into the BITMAPHANDLE, then convert the BITMAPHANDLE into a RasterImage.
Travis Montgomery
Senior Sales Engineer
#2
Posted
:
Tuesday, March 20, 2012 5:53:59 AM(UTC)
Groups: Guests
Posts: 3,022
Was thanked: 2 time(s) in 2 post(s)
I've updated this project to use the LEADTOOLS v17.5 in VB.NET using Visual Studio 2008. Copy the "Test.jpg" file to the c:\ drive to test the project without modifying it.
#3
Posted
:
Tuesday, March 20, 2012 5:56:50 AM(UTC)
Groups: Guests
Posts: 3,022
Was thanked: 2 time(s) in 2 post(s)
I've updated this project to use the LEADTOOLS v17.5 in C# using Visual Studio 2008. Copy the "Test.jpg" file to the c:\ drive to test the project without modifying it.
#4
Posted
:
Monday, October 2, 2017 10:26:06 AM(UTC)
Groups: Registered, Tech Support, Administrators
Posts: 199
Was thanked: 28 time(s) in 28 post(s)
Updated to LEADTOOLS v19 with Visual Studio 2017. Also changed project to automatically select dll's for running in 32-bit and 64-bit.
Extract to "C:\LEADTOOLS 19\Examples\DotNet\CS\" to use the example.
Uses Visual Studio 2010 (v100) compatible CDLL toolset found in "C:\LEADTOOLS 19\Bin\CDLLVC10\", chooses "Win32" or "x64" subfolder automatically.
There is no longer an included "Test.jpg", instead it uses "cannon.jpg" from the "LEADTOOLS Images" folder.
Changed conversion method to use an intermediate of Windows device independent bitmap (DIB). First converts the BITMAPHANDLE to a DIB via
L_ConvertToDIB(), then converts to a RasterImage via
RasterImage.FromDib()Anthony Northrup
Developer Support Engineer
LEAD Technologies, Inc.
LEADTOOLS Support
Imaging
Imaging SDK Examples
How to convert BITMAPHANDLE to RasterImage
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.