smaller reset larger        English  German         

Main Menu

All times are in GMT -8 (DST) :: The time is now 6:52 pm.

Sub Menu

Article Data
Article Ref
7487-EUIV-5739
Date Created
Mon, 18th Jul 2011
Date Modified
Tue, 11th Mar 2014
 
 
(Lost?)

   How to read images into HSDataBase without using the AcquisitionDevice in VB.NET

Question 

How can I read images into a HSDataBase without using the AcquisitionDevice in  VB.NET?

Answer 

Dim lDB As HSCLASSLIBRARYLib.HSDatabase

lDB = mApplicationControl.Database

 

Dim i As Integer

Dim j As Integer

 

Dim lImage1 As HSCLASSLIBRARYLib.HSImage

lDB.AddView("Import View")

lImage1 = lDB.AddImage("Import View", "Import", HSCLASSLIBRARYLib.hsImageType.hsImage32bppRgb)

lImage1.Width = 10

lImage1.Height = 10

 

For i = 0 To 9

     For j = 0 To 9

           lImage1.Pixel(i, j) = 8421504

           If i = j Then lImage1.Pixel(i, j) = 16711680

     Next

Next

How Useful Was This Article?      (Rating: 100%    Votes: 2)  

Select a Rating