Leadtools Namespace > RasterImage Class : IsConventionalMemory Property |
public bool IsConventionalMemory {get;}
'Declaration Public ReadOnly Property IsConventionalMemory As Boolean
'Usage Dim instance As RasterImage Dim value As Boolean value = instance.IsConventionalMemory
public bool IsConventionalMemory {get;}
get_IsConventionalMemory();
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
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(); } } }
[TestMethod] 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(); }
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(); }
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
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2