Determines if the memory allocated for the image data is in conventional memory.
public bool IsConventionalMemory {get;}
Public ReadOnly Property IsConventionalMemory As Boolean
public bool IsConventionalMemory {get;}
@property (nonatomic, assign, readonly) BOOL usesConventionalMemory
public boolean isConventionalMemory()
get_IsConventionalMemory();
public:
property bool IsConventionalMemory {
bool get();
}
true if the memory allocated for the image data is in conventional memory; false, otherwise.
This example creates images with different RasterMemoryFlags types.
using Leadtools;
using Leadtools.Codecs;
using Leadtools.ImageProcessing;
using Leadtools.ImageProcessing.Core;
using Leadtools.ImageProcessing.Color;
using Leadtools.Dicom;
using Leadtools.Drawing;
using Leadtools.Controls;
using LeadtoolsExamples.Common;
using Leadtools.Svg;
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();
}
Imports Leadtools
Imports Leadtools.Codecs
Imports Leadtools.ImageProcessing
Imports Leadtools.ImageProcessing.Core
Imports Leadtools.ImageProcessing.Color
Imports Leadtools.Controls
Imports Leadtools.Dicom
Imports Leadtools.Drawing
Imports Leadtools.Svg
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.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
Products |
Support |
Feedback: IsConventionalMemory Property - Leadtools |
Introduction |
Help Version 19.0.2017.6.19
|
Raster .NET | C API | C++ Class Library | JavaScript HTML5
Document .NET | C API | C++ Class Library | JavaScript HTML5
Medical .NET | C API | C++ Class Library | JavaScript HTML5
Medical Web Viewer .NET
Your email has been sent to support! Someone should be in touch! If your matter is urgent please come back into chat.
Chat Hours:
Monday - Friday, 8:30am to 6pm ET
Thank you for your feedback!
Please fill out the form again to start a new chat.
All agents are currently offline.
Chat Hours:
Monday - Friday
8:30AM - 6PM EST
To contact us please fill out this form and we will contact you via email.