LEADTOOLS(Leadtoolsアセンブリ)

フレームを表示

IsConventionalMemoryプロパティ








画像データに割り当てられるメモリがコンベンショナルメモリにあるかどうか決定します。
構文
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;}
@property (nonatomic, assign, readonly) BOOL usesConventionalMemory
public boolean isConventionalMemory()
 get_IsConventionalMemory(); 
public:
property bool IsConventionalMemory {
   bool get();
}

属性値

画像データに割り当てられるメモリがコンベンショナルメモリにあるならば、true;それ以外の場合はFalseです。
サンプル

このサンプルは、様々なRasterMemoryFlagsタイプでイメージを作成します。

Copy Code  
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.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();
}
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
必要条件

ターゲットプラットホーム

参照

参照

RasterImageクラス
RasterImageメンバ