←Select platform

IsTiled Property

Summary
Determines if the memory allocated for the image data is allocated in tiles.
Syntax
C#
Objective-C
C++/CLI
Java
Python
public bool IsTiled { get; } 
@property (nonatomic, assign, readonly) BOOL isTiled 
public boolean isTiled(); 
public: 
property bool IsTiled { 
   bool get(); 
} 
IsTiled # get  (RasterImage) 

Property Value

true if the memory allocated for the image data is allocated in tiles.

Example
C#
Java
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(); 
} 
 
import java.io.File; 
import java.io.FileInputStream; 
import java.io.IOException; 
import java.io.InputStream; 
import java.util.ArrayList; 
import java.util.List; 
 
import org.junit.*; 
import org.junit.runner.JUnitCore; 
import org.junit.runner.Result; 
import org.junit.runner.notification.Failure; 
import static org.junit.Assert.*; 
 
import leadtools.*; 
import leadtools.codecs.*; 
import leadtools.imageprocessing.core.*; 
import leadtools.svg.*; 
import leadtools.imageprocessing.CloneCommand; 
import leadtools.imageprocessing.FillCommand; 
import leadtools.imageprocessing.FlipCommand; 
import leadtools.imageprocessing.GrayscaleCommand; 
import leadtools.imageprocessing.color.InvertCommand; 
import leadtools.imageprocessing.color.PosterizeCommand; 
 
 
public void isConventionalMemoryExample() { 
   // Create image with conventional memory 
   byte[] userData = new byte[0]; 
   RasterImage imageConv = new RasterImage(RasterMemoryFlags.CONVENTIONAL.getValue(), 3000, 3000, 24, 
         RasterByteOrder.BGR, RasterViewPerspective.TOP_LEFT, null, userData, 0); 
   System.out.printf("imageConv.IsConventionalMemory = %s%n", imageConv.isConventionalMemory()); 
   imageConv.dispose(); 
 
   // Create image with disk memory 
   RasterImage imageDisk = new RasterImage(RasterMemoryFlags.DISK.getValue(), 3000, 3000, 24, RasterByteOrder.BGR, 
         RasterViewPerspective.TOP_LEFT, null, userData, 0); 
   assertTrue(imageDisk.getWidth() == 3000); 
   System.out.printf("imageDisk.IsDiskMemory = {0}", imageDisk.isDiskMemory()); 
   imageDisk.dispose(); 
 
   // Create image with tiled memory 
   RasterImage imageTiled = new RasterImage(RasterMemoryFlags.TILED.getValue(), 3000, 3000, 24, RasterByteOrder.BGR, 
         RasterViewPerspective.TOP_LEFT, null, userData, 0); 
   System.out.printf("imageTiled.IsTiled = {0}", imageTiled.isTiled()); 
   imageTiled.dispose(); 
} 
Requirements

Target Platforms

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

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