←Select platform

UseBitPlane Property

Summary
Gets or sets a value which determines whether the overlay has a corresponding bitplane in the main image.
Syntax
C#
Objective-C
C++/CLI
Java
Python
public bool UseBitPlane { get; set; } 
@property (nonatomic, assign) BOOL useBitPlane 
public boolean getUseBitPlane(); 
public void setUseBitPlane( 
   boolean booleanValue 
); 
public: 
property bool UseBitPlane { 
   bool get(); 
   void set (    bool ); 
} 
UseBitPlane # get and set (RasterOverlayAttributes) 

Property Value

true if the overlay has a corresponding bitplane in the main image; false, otherwise.

Remarks

If the value of this property is true, then BitPosition should hold the index to the index bitplane.

For more information, refer to Overlay Overview.

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 DispalyDicomOverlayAttributes() 
{ 
   DicomEngine.Startup(); 
   DicomDataSet dataSet = new DicomDataSet(); 
   dataSet.Load(Path.Combine(LEAD_VARS.ImagesDir, "DICOM", "overlay.dcm"), DicomDataSetLoadFlags.LoadAndClose); 
   RasterOverlayAttributes attributes = dataSet.GetOverlayAttributes(0); 
   Console.WriteLine($"ActivationLayer: {attributes.ActivationLayer}"); 
   Console.WriteLine($"BitsAllocated: {attributes.BitsAllocated}"); 
   Console.WriteLine($"Rows: {attributes.Rows}"); 
   Console.WriteLine($"Columns: {attributes.Columns}"); 
   Console.WriteLine($"Description: {attributes.Description}"); 
   Console.WriteLine($"FramesInOverlay: {attributes.FramesInOverlay}"); 
   Console.WriteLine($"ImageFrameOrigin: {attributes.ImageFrameOrigin}"); 
   Console.WriteLine($"Label: {attributes.Label}"); 
   Console.WriteLine($"RoiArea: {attributes.RoiArea}"); 
   Console.WriteLine($"RoiMean: {attributes.RoiMean}"); 
   Console.WriteLine($"RoiStandardDeviation: {attributes.RoiStandardDeviation}"); 
   Console.WriteLine($"Type: {attributes.Type}"); 
   Console.WriteLine($"Subtype: {attributes.Subtype}"); 
   Console.WriteLine($"UseBitPlane: {attributes.UseBitPlane}"); 
   dataSet.Dispose(); 
   DicomEngine.Shutdown(); 
} 
 
static class LEAD_VARS 
{ 
   public const string ImagesDir = @"C:\LEADTOOLS23\Resources\Images"; 
} 
Requirements

Target Platforms

Help Version 23.0.2024.8.28
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.