public bool IsTiled { get; }
@property (nonatomic, assign, readonly) BOOL isTiled
public boolean isTiled();
public:
property bool IsTiled {
bool get();
}
IsTiled # get (RasterImage)
true if the memory allocated for the image data is allocated in tiles.
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();
}
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document