Visual Basic (Declaration) | |
---|---|
Public Class CodecsPtokaOptions |
Visual Basic (Usage) | Copy Code |
---|---|
Dim instance As CodecsPtokaOptions |
C# | |
---|---|
public class CodecsPtokaOptions |
C++/CLI | |
---|---|
public ref class CodecsPtokaOptions |
Visual Basic | Copy Code |
---|---|
Public Sub CodecsPtokaOptionsExample() Dim codecs As RasterCodecs = New RasterCodecs() Dim srcFileName As String = Path.Combine(LEAD_VARS.ImagesDir, "Image1.ptk") ' Setting new options. codecs.Options.Ptoka.Load.Resolution = 500 Dim image As RasterImage = codecs.Load(srcFileName) ' Clean up image.Dispose() codecs.Dispose() End Sub Public NotInheritable Class LEAD_VARS Public Const ImagesDir As String = "C:\Users\Public\Documents\LEADTOOLS Images" End Class |
C# | Copy Code |
---|---|
public void CodecsPtokaOptionsExample() { RasterCodecs codecs = new RasterCodecs(); string srcFileName = Path.Combine(LEAD_VARS.ImagesDir, "Image1.ptk"); // Setting new options. codecs.Options.Ptoka.Load.Resolution = 500; RasterImage image = codecs.Load(srcFileName); // Clean up image.Dispose(); codecs.Dispose(); } static class LEAD_VARS { public const string ImagesDir = @"C:\Users\Public\Documents\LEADTOOLS Images"; } |
SilverlightCSharp | Copy Code |
---|---|
SilverlightVB | Copy Code |
---|---|
System.Object
Leadtools.Codecs.CodecsPtokaOptions
Target Platforms: Silverlight, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7, MAC OS/X (Intel Only)