public CodecsVffView View { get; set; } @property (nonatomic, assign) LTCodecsVffView view; public CodecsVffView getView()public void setView(CodecsVffView view)
public:property CodecsVffView View {CodecsVffView get();void set ( CodecsVffView );}
View # get and set (CodecsVffLoadOptions)
The view to use when loading VFF (Sun TAAC Bitmap) images.
using Leadtools;using Leadtools.Codecs;using Leadtools.ImageProcessing.Core;using Leadtools.Pdf;public void CodecsVffLoadOptionsExample(){RasterCodecs codecs = new RasterCodecs();string srcFileName = Path.Combine(LEAD_VARS.ImagesDir, "Image1.vff");string dstFileName1 = Path.Combine(LEAD_VARS.ImagesDir, "Image1_Vff_UpToDown.bmp");string dstFileName2 = Path.Combine(LEAD_VARS.ImagesDir, "Image1_Vff_LeftToRight.bmp");// Set the load options to use up to down along the X-Axis// CodecsVffOptions & CodecsVffLoadOptions referencecodecs.Options.Vff.Load.View = CodecsVffView.UpToDown;// Load the source fileusing (RasterImage image = codecs.Load(srcFileName)){// Save the image as BMPcodecs.Save(image, dstFileName1, RasterImageFormat.Bmp, 24);}// Now, set the load options to use left to right along the Y-Axiscodecs.Options.Vff.Load.View = CodecsVffView.LeftToRight;// Re-load the source fileusing (RasterImage image = codecs.Load(srcFileName)){// Save the image as BMPcodecs.Save(image, dstFileName2, RasterImageFormat.Bmp, 24);}// Clean upcodecs.Dispose();}static class LEAD_VARS{public const string ImagesDir = @"C:\LEADTOOLS23\Resources\Images";}
import java.io.File;import java.io.IOException;import java.net.URI;import java.net.URISyntaxException;import java.nio.file.Paths;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.MinMaxBitsCommand;public void CodecsVffLoadOptionsExample(){final String LEAD_VARS_IMAGES_DIR ="C:\\LEADTOOLS23\\Resources\\Images";RasterCodecs codecs = new RasterCodecs();String srcFileName = combine(LEAD_VARS_IMAGES_DIR, "aortas_vehicle_crop.vff");String dstFileName1 = combine(LEAD_VARS_IMAGES_DIR,"Image1_Vff_UpToDown.bmp");String dstFileName2 = combine(LEAD_VARS_IMAGES_DIR,"Image1_Vff_LeftToRight.bmp");// Set the load options to use up to down along the X-Axis// CodecsVffOptions & CodecsVffLoadOptions referencecodecs.getOptions().getVff().getLoad().setView(CodecsVffView.VFF_VIEW_UPTODOWN);// Load the source fileRasterImage image = codecs.load(srcFileName);// Save the image as BMPcodecs.save(image, dstFileName1, RasterImageFormat.BMP, 24);assertTrue("File unsuccessfully saved to " + dstFileName1, (newFile(dstFileName1)).exists());System.out.printf("File successfully saved to %s%n", dstFileName1);image = null;// Now, set the load options to use left to right along the Y-Axiscodecs.getOptions().getVff().getLoad().setView(CodecsVffView.VFF_VIEW_LEFTTORIGHT);// Re-load the source fileimage = codecs.load(srcFileName);// Save the image as BMPcodecs.save(image, dstFileName2, RasterImageFormat.BMP, 24);assertTrue("File unsuccessfully saved to " + dstFileName2, (newFile(dstFileName2)).exists());System.out.printf("File successfully saved to %s%n", dstFileName2);// Clean upimage.dispose();;codecs.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
