LEADTOOLS (Leadtools assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.29
IsConventionalMemory Property
See Also 
Leadtools Namespace > RasterImage Class : IsConventionalMemory Property



Determines if the memory allocated for the image data is in conventional memory. Supported in Silverlight, Windows Phone 7

Syntax

Visual Basic (Declaration) 
Public ReadOnly Property IsConventionalMemory As Boolean
Visual Basic (Usage)Copy Code
Dim instance As RasterImage
Dim value As Boolean
 
value = instance.IsConventionalMemory
C# 
public bool IsConventionalMemory {get;}
C++/CLI 
public:
property bool IsConventionalMemory {
   bool get();
}

Property Value

true if the memory allocated for the image data is in conventional memory, otherwise; false.

Example

This example creates images with different RasterMemoryFlags types.

Visual BasicCopy Code
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
C#Copy Code
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();
}
SilverlightCSharpCopy Code
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();
}
SilverlightVBCopy Code
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

Requirements

Target Platforms: Silverlight, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7, MAC OS/X (Intel Only), Windows Phone 7

See Also