Imports Leadtools
Imports Leadtools.Codecs
Imports Leadtools.ImageProcessing
Imports Leadtools.ImageProcessing.Core
Imports Leadtools.ImageProcessing.Color
Imports Leadtools.WinForms
Imports Leadtools.Dicom
Imports Leadtools.Drawing
Public Sub IsConventionalMemoryExample()
' create image with conventional memory
Dim imageConv As RasterImage = New RasterImage(RasterMemoryFlags.Conventional, 3000, 3000, 24, RasterByteOrder.Bgr, RasterViewPerspective.TopLeft, Nothing, IntPtr.Zero, 0)
Console.WriteLine("imageConv.IsConventionalMemory = {0}", imageConv.IsConventionalMemory.ToString())
imageConv.Dispose()
' create image with disk memory
Dim imageDisk As RasterImage = New RasterImage(RasterMemoryFlags.Disk, 3000, 3000, 24, RasterByteOrder.Bgr, RasterViewPerspective.TopLeft, Nothing, IntPtr.Zero, 0)
Console.WriteLine("imageDisk.IsDiskMemory = {0}", imageDisk.IsDiskMemory.ToString())
imageDisk.Dispose()
' create image with tiled memory
Dim imageTiled As RasterImage = New RasterImage(RasterMemoryFlags.Tiled, 3000, 3000, 24, RasterByteOrder.Bgr, RasterViewPerspective.TopLeft, Nothing, IntPtr.Zero, 0)
Console.WriteLine("imageTiled.IsTiled = {0}", imageTiled.IsTiled.ToString())
imageTiled.Dispose()
End Sub
using Leadtools;
using Leadtools.Codecs;
using Leadtools.ImageProcessing;
using Leadtools.ImageProcessing.Core;
using Leadtools.ImageProcessing.Color;
using Leadtools.WinForms;
using Leadtools.Dicom;
using Leadtools.Drawing;
public void IsConventionalMemoryExample()
{
// create image with conventional memory
RasterImage imageConv = new RasterImage(RasterMemoryFlags.Conventional, 3000, 3000, 24, RasterByteOrder.Bgr, RasterViewPerspective.TopLeft, null, IntPtr.Zero, 0);
Console.WriteLine("imageConv.IsConventionalMemory = {0}", imageConv.IsConventionalMemory.ToString());
imageConv.Dispose();
// create image with disk memory
RasterImage imageDisk = new RasterImage(RasterMemoryFlags.Disk, 3000, 3000, 24, RasterByteOrder.Bgr, RasterViewPerspective.TopLeft, null, IntPtr.Zero, 0);
Console.WriteLine("imageDisk.IsDiskMemory = {0}", imageDisk.IsDiskMemory.ToString());
imageDisk.Dispose();
// create image with tiled memory
RasterImage imageTiled = new RasterImage(RasterMemoryFlags.Tiled, 3000, 3000, 24, RasterByteOrder.Bgr, RasterViewPerspective.TopLeft, null, IntPtr.Zero, 0);
Console.WriteLine("imageTiled.IsTiled = {0}", imageTiled.IsTiled.ToString());
imageTiled.Dispose();
}
RasterImageExamples.prototype.IsConventionalMemoryExample = function () {
Tools.SetLicense();
with (Leadtools) {
with (Leadtools.Codecs) {
// create image with conventional memory
var imageConv = new RasterImage(RasterMemoryFlags.conventional, 3000, 3000, 24, RasterByteOrder.bgr, RasterViewPerspective.topLeft, null);
console.info("imageConv.IsConventionalMemory = ", imageConv.isConventionalMemory.toString());
imageConv.close();
// create image with disk memory
var imageDisk = new RasterImage(RasterMemoryFlags.disk, 3000, 3000, 24, RasterByteOrder.bgr, RasterViewPerspective.topLeft, null);
console.info("imageDisk.IsDiskMemory = ", imageDisk.isDiskMemory.toString());
imageDisk.close();
// create image with tiled memory
var imageTiled = new RasterImage(RasterMemoryFlags.tiled, 3000, 3000, 24, RasterByteOrder.bgr, RasterViewPerspective.topLeft, null);
console.info("imageTiled.IsTiled = ", imageTiled.isTiled.toString());
imageTiled.close();
}
}
}
using Leadtools;
using Leadtools.Codecs;
using Leadtools.ImageProcessing;
using Leadtools.ImageProcessing.Core;
using Leadtools.ImageProcessing.Color;
using Leadtools.Dicom;
public void IsConventionalMemoryExample()
{
// create image with conventional memory
RasterImage imageConv = new RasterImage(RasterMemoryFlags.Conventional, 3000, 3000, 24, RasterByteOrder.Bgr, RasterViewPerspective.TopLeft, null);
Debug.WriteLine("imageConv.IsConventionalMemory = {0}", imageConv.IsConventionalMemory.ToString());
imageConv.Dispose();
// create image with disk memory
RasterImage imageDisk = new RasterImage(RasterMemoryFlags.Disk, 3000, 3000, 24, RasterByteOrder.Bgr, RasterViewPerspective.TopLeft, null);
Debug.WriteLine("imageDisk.IsDiskMemory = {0}", imageDisk.IsDiskMemory.ToString());
imageDisk.Dispose();
// create image with tiled memory
RasterImage imageTiled = new RasterImage(RasterMemoryFlags.Tiled, 3000, 3000, 24, RasterByteOrder.Bgr, RasterViewPerspective.TopLeft, null);
Debug.WriteLine("imageTiled.IsTiled = {0}", imageTiled.IsTiled.ToString());
imageTiled.Dispose();
}
using Leadtools;
using Leadtools.Codecs;
using Leadtools.Dicom;
using Leadtools.ImageProcessing;
using Leadtools.ImageProcessing.Core;
using Leadtools.ImageProcessing.Color;
using Leadtools.Examples;
using Leadtools.Windows.Media;
public void IsConventionalMemoryExample()
{
// create image with conventional memory
RasterImage imageConv = new RasterImage(RasterMemoryFlags.Conventional, 3000, 3000, 24, RasterByteOrder.Bgr, RasterViewPerspective.TopLeft, null, null, 0);
Debug.WriteLine("imageConv.IsConventionalMemory = {0}", imageConv.IsConventionalMemory.ToString());
imageConv.Dispose();
// create image with disk memory
RasterImage imageDisk = new RasterImage(RasterMemoryFlags.Disk, 3000, 3000, 24, RasterByteOrder.Bgr, RasterViewPerspective.TopLeft, null, null, 0);
Debug.WriteLine("imageDisk.IsDiskMemory = {0}", imageDisk.IsDiskMemory.ToString());
imageDisk.Dispose();
// create image with tiled memory
RasterImage imageTiled = new RasterImage(RasterMemoryFlags.Tiled, 3000, 3000, 24, RasterByteOrder.Bgr, RasterViewPerspective.TopLeft, null, null, 0);
Debug.WriteLine("imageTiled.IsTiled = {0}", imageTiled.IsTiled.ToString());
imageTiled.Dispose();
}
Imports Leadtools
Imports Leadtools.Codecs
Imports Leadtools.Dicom
Imports Leadtools.ImageProcessing
Imports Leadtools.ImageProcessing.Core
Imports Leadtools.ImageProcessing.Color
Imports Leadtools.Windows.Media
Public Sub IsConventionalMemoryExample()
' create image with conventional memory
Dim imageConv As RasterImage = New RasterImage(RasterMemoryFlags.Conventional, 3000, 3000, 24, RasterByteOrder.Bgr, RasterViewPerspective.TopLeft, Nothing, Nothing, 0)
Debug.WriteLine("imageConv.IsConventionalMemory = {0}", imageConv.IsConventionalMemory.ToString())
imageConv.Dispose()
' create image with disk memory
Dim imageDisk As RasterImage = New RasterImage(RasterMemoryFlags.Disk, 3000, 3000, 24, RasterByteOrder.Bgr, RasterViewPerspective.TopLeft, Nothing, Nothing, 0)
Debug.WriteLine("imageDisk.IsDiskMemory = {0}", imageDisk.IsDiskMemory.ToString())
imageDisk.Dispose()
' create image with tiled memory
Dim imageTiled As RasterImage = New RasterImage(RasterMemoryFlags.Tiled, 3000, 3000, 24, RasterByteOrder.Bgr, RasterViewPerspective.TopLeft, Nothing, Nothing, 0)
Debug.WriteLine("imageTiled.IsTiled = {0}", imageTiled.IsTiled.ToString())
imageTiled.Dispose()
End Sub