
Visual Basic
C#
Managed Extensions for C++
C++/CLI
C# | ![]() |
---|---|
ImGearPage image; // Select an image file to load. OpenFileDialog dlg = new OpenFileDialog(); if (dlg.ShowDialog() != true) { return; } // Load an image file. using (FileStream file = dlg.File.OpenRead()) { image = ImGearFileFormats.LoadPage(file, 0); } // Setup rectangle for the image mark's location. ImGearRectangle rectangle = new ImGearRectangle(10, 10, 100, 100); // Create image mark using an image. ImGearARTImage artImage = new ImGearARTImage(rectangle, image); // Add the annotation to the ARTPage. igArtPage.AddMark(artImage, ImGearARTCoordinatesType.IMAGE_COORD); |
Visual Basic | ![]() |
---|---|
Dim image As ImGearPage ' Select an image file to load. Dim dlg As New OpenFileDialog() If dlg.ShowDialog() <> True Then Return End If ' Load an image file. Using file As FileStream = dlg.File.OpenRead() image = ImGearFileFormats.LoadPage(file, 0) End Using ' Setup rectangle for the image mark's location. Dim rectangle As New ImGearRectangle(10, 10, 100, 100) ' Create image mark using an image. Dim artImage As New ImGearARTImage(rectangle, image) ' Add the annotation to the ARTPage. igArtPage.AddMark(artImage, ImGearARTCoordinatesType.IMAGE_COORD) |
System.Object
ImageGear.ART.ImGearARTSelection
ImageGear.ART.ImGearARTMark
ImageGear.ART.ImGearARTImage