←Select platform

IsDiskMemory Property

Summary
Determines if the memory allocated for the image data is allocated as a disk file rather than in physical memory.
Syntax
C#
Objective-C
C++/CLI
Java
Python
public bool IsDiskMemory { get; } 
@property (nonatomic, assign, readonly) BOOL usesDiskMemory 
public boolean isDiskMemory(); 
public: 
property bool IsDiskMemory { 
   bool get(); 
} 
IsDiskMemory # get  (RasterImage) 

Property Value

true if the memory allocated for the image data is allocated as a disk file rather than in physical memory; false, otherwise.

Example
C#
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 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(); 
} 
Requirements

Target Platforms

Help Version 22.0.2023.5.16
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.

Leadtools Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.