Class PsDocument
Namespace: Aspose.Page.EPS
Assembly: Aspose.Page.dll (25.1.2)
このクラスはPS/EPSドキュメントをカプセル化します。
public sealed class PsDocument : Document
継承
object ← Document ← PsDocument
継承されたメンバー
object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
コンストラクター
PsDocument(string, PsSaveOptions)
初期化されたページを持つ空のAspose.Page.EPS.PsDocumentを初期化します。
public PsDocument(string outPsFilePath, PsSaveOptions options)
パラメーター
outPsFilePath
string
出力PS/EPSファイルのパス。
options
PsSaveOptions
PostScriptファイルの保存を制御するパラメーターのセット。
PsDocument(Stream, PsSaveOptions)
初期化されたページを持つ空のAspose.Page.EPS.PsDocumentを初期化します。
public PsDocument(Stream outPsStream, PsSaveOptions options)
パラメーター
outPsStream
Stream
PS/EPSファイルを保存するストリーム。
options
PsSaveOptions
PostScriptファイルの保存を制御するパラメーターのセット。
PsDocument(string, PsSaveOptions, bool)
空のAspose.Page.EPS.PsDocumentを初期化します。
public PsDocument(string outPsFilePath, PsSaveOptions options, bool multipaged)
パラメーター
outPsFilePath
string
出力PS/EPSファイルのパス。
options
PsSaveOptions
PostScriptファイルの保存を制御するパラメーターのセット。
multipaged
bool
falseの場合、ページは初期化されません。この場合、ページの初期化は明示的に"openPage(width, height)“を呼び出すことで行う必要があります。
PsDocument(Stream, PsSaveOptions, bool)
空のAspose.Page.EPS.PsDocumentを初期化します。
public PsDocument(Stream outPsStream, PsSaveOptions options, bool multipaged)
パラメーター
outPsStream
Stream
PS/EPSファイルを保存するストリーム。
options
PsSaveOptions
PostScriptファイルの保存を制御するパラメーターのセット。
multipaged
bool
falseの場合、ページは初期化されません。この場合、ページの初期化は明示的に"openPage(width, height)“を呼び出すことで行う必要があります。
PsDocument(string, PsSaveOptions, int)
Postscriptドキュメントのページ数が事前にわかっている場合に空のAspose.Page.EPS.PsDocumentを初期化します。
public PsDocument(string outPsFilePath, PsSaveOptions options, int numberOfPages)
パラメーター
outPsFilePath
string
出力PS/EPSファイルのパス。
options
PsSaveOptions
PostScriptファイルの保存を制御するパラメーターのセット。
numberOfPages
int
PostScriptドキュメントのページ数。
PsDocument(Stream, PsSaveOptions, int)
Postscriptドキュメントのページ数が事前にわかっている場合に空のAspose.Page.EPS.PsDocumentを初期化します。
public PsDocument(Stream outPsStream, PsSaveOptions options, int numberOfPages)
パラメーター
outPsStream
Stream
PS/EPSファイルを保存するストリーム。
options
PsSaveOptions
PostScriptファイルの保存を制御するパラメーターのセット。
numberOfPages
int
PostScriptドキュメントのページ数。
PsDocument(string)
入力PS/EPSファイルを使用してAspose.Page.EPS.PsDocumentを初期化します。
public PsDocument(string psFilePath)
パラメーター
psFilePath
string
PS/EPSファイルのパス。
PsDocument(Stream)
PS/EPSファイルのストリームを使用してAspose.Page.EPS.PsDocumentを初期化します。
public PsDocument(Stream inPsStream)
パラメーター
inPsStream
Stream
PS/EPSファイルの入力ストリーム。
プロパティ
InputStream
PS/EPSファイルの入力ストリームを取得または設定します。
public Stream InputStream { get; set; }
プロパティ値
NumberOfPages
生成されたPDFドキュメントのページ数を返します。
public int NumberOfPages { get; }
プロパティ値
メソッド
Clip(GraphicsPath)
現在のグラフィックス状態にクリップを追加します。
public void Clip(GraphicsPath s)
パラメーター
クリッピングパス。
ClipAndNewPath(GraphicsPath)
現在のグラフィックス状態にクリップを追加し、その後"newpath"オペレーターを書き込みます。このクリッピングパスとその後のパス(例えば"charpath"オペレーターで輪郭を描画されたグリフ)とのコンフルエンスを回避するために必要です。
public void ClipAndNewPath(GraphicsPath s)
パラメーター
クリッピングパス。
ClipRectangle(RectangleF)
現在のグラフィックス状態にクリッピング矩形を追加します。
public void ClipRectangle(RectangleF rect)
パラメーター
rect
RectangleF
クリッピング矩形。
ClipText(string, Font, float, float)
指定されたフォントで指定されたテキストの輪郭からクリップを追加します。
public void ClipText(string text, Font font, float x, float y)
パラメーター
text
string
テキスト。
font
Font
フォント。
x
float
テキスト位置のX座標。
y
float
テキスト位置のY座標。
ClosePage()
現在のページを完了します。
public void ClosePage()
CropEps(string, float[])
指定されたAspose.Page.EPS.PsDocumentをEPSファイルとしてトリミングします。 既存の%%BoundingBoxを更新して初期EPSファイルを保存するか、新しいものが作成されます。
public void CropEps(string outEpsFilePath, float[] cropBox)
パラメーター
outEpsFilePath
string
出力EPSファイルのパス。
cropBox
float[]
トリミングボックス (x0, y0, x, y)。
CropEps(Stream, float[])
指定されたAspose.Page.EPS.PsDocumentをEPSファイルとしてトリミングします。 既存の%%BoundingBoxを更新して初期EPSファイルを保存するか、新しいものが作成されます。
public void CropEps(Stream epsStream, float[] cropBox)
パラメーター
epsStream
Stream
出力EPSファイルのストリーム。
cropBox
float[]
トリミングボックス (x0, y0, x, y)。
Draw(GraphicsPath)
任意のパスを描画します。
public void Draw(GraphicsPath shape)
パラメーター
shape
GraphicsPath
描画するパス。
DrawArc(double, double, double, double, double, double)
アークを描画します。
public void DrawArc(double x, double y, double width, double height, double startAngle, double arcAngle)
パラメーター
x
double
アークの中心のX座標。
y
double
アークの中心のY座標。
width
double
外接矩形の幅。
height
double
外接矩形の高さ。
startAngle
double
アークの開始角度。
arcAngle
double
アークの角度。
DrawExplicitImageMask(Bitmap, Bitmap, Matrix)
マスクされた画像を描画します。
public void DrawExplicitImageMask(Bitmap image24bpp, Bitmap alphaMask1bpp, Matrix transform)
パラメーター
image24bpp
Bitmap
描画する画像。24bpp RGB画像形式である必要があります。
alphaMask1bpp
Bitmap
画像マスク。1bpp画像形式である必要があります。
transform
Matrix
画像を変換するための行列。
DrawImage(Bitmap)
画像を描画します。
public void DrawImage(Bitmap image)
パラメーター
image
Bitmap
描画する画像。
DrawImage(Bitmap, Matrix, Color)
背景付きの変換された画像を描画します。
public void DrawImage(Bitmap image, Matrix transform, Color bkg)
パラメーター
image
Bitmap
描画する画像。
transform
Matrix
画像を変換するための行列。
bkg
Color
画像の背景。
DrawLine(double, double, double, double)
線分を描画します。
public void DrawLine(double x1, double y1, double x2, double y2)
パラメーター
x1
double
線分の始点のX座標。
y1
double
線分の始点のY座標。
x2
double
線分の終点のX座標。
y2
double
線分の終点のY座標。
DrawOval(double, double, double, double)
楕円を描画します。
public void DrawOval(double x, double y, double width, double height)
パラメーター
x
double
楕円の中心のX座標。
y
double
楕円の中心のY座標。
width
double
外接矩形の幅。
height
double
外接矩形の高さ。
DrawPolygon(int[], int[], int)
多角形を描画します。
public void DrawPolygon(int[] xPoints, int[] yPoints, int nPoints)
パラメーター
xPoints
int[]
点のX座標。
yPoints
int[]
点のY座標。
nPoints
int
点の数。
DrawPolygon(double[], double[], int)
多角形を描画します。
public void DrawPolygon(double[] xPoints, double[] yPoints, int nPoints)
パラメーター
xPoints
double[]
点のX座標。
yPoints
double[]
点のY座標。
nPoints
int
点の数。
DrawPolyline(int[], int[], int)
ポリラインを描画します。
public void DrawPolyline(int[] xPoints, int[] yPoints, int nPoints)
パラメーター
xPoints
int[]
点のX座標。
yPoints
int[]
点のY座標。
nPoints
int
点の数。
DrawPolyline(double[], double[], int)
ポリラインを描画します。
public void DrawPolyline(double[] xPoints, double[] yPoints, int nPoints)
パラメーター
xPoints
double[]
点のX座標。
yPoints
double[]
点のY座標。
nPoints
int
点の数。
DrawRect(double, double, double, double)
矩形を描画します。
public void DrawRect(double x, double y, double width, double height)
パラメーター
x
double
矩形の左上隅のX座標。
y
double
矩形の左上隅のY座標。
width
double
矩形の幅。
height
double
矩形の高さ。
DrawRoundRect(double, double, double, double, double, double)
角丸矩形を描画します。
public void DrawRoundRect(double x, double y, double width, double height, double arcWidth, double arcHeight)
パラメーター
x
double
矩形の左上隅のX座標。
y
double
矩形の左上隅のY座標。
width
double
矩形の幅。
height
double
矩形の高さ。
arcWidth
double
角を丸めるアークの外接矩形の幅。
arcHeight
double
角を丸めるアークの外接矩形の高さ。
DrawTransparentImage(Bitmap, Matrix, int)
変換された透明画像を描画します。画像にアルファチャネルがない場合、画像は不透明として描画されます。
public void DrawTransparentImage(Bitmap image, Matrix transform, int transparencyThreshold)
パラメーター
image
Bitmap
描画する画像。
transform
Matrix
画像を変換するための行列。
transparencyThreshold
int
透明度の値から、ピクセルが完全に透明として解釈されるかどうかを定義するしきい値。すべての値がこのしきい値よりも低い場合は、完全に不透明として解釈されます。
ExtractEpsBoundingBox()
EPSファイルを読み取り、%%BoundingBoxコメントからEPS画像のバウンディングボックスを抽出するか、存在しない場合はデフォルトのページサイズ (0, 0, 595, 842) の境界を抽出します。
public int[] ExtractEpsBoundingBox()
戻り値
int[]
EPS画像のバウンディングボックス。
ExtractEpsSize()
EPSファイルを読み取り、%%BoundingBoxコメントからEPS画像のサイズを抽出するか、存在しない場合はデフォルトのページサイズ (595, 842) を抽出します。
public Size ExtractEpsSize()
戻り値
EPS画像のサイズ。
ExtractText(SaveOptions, int, int)
PSファイルからテキストを抽出します。テキストはType 42 (TrueType)フォントまたはType 0フォントがType 42フォントを含むベクターマップで書かれている場合にのみ抽出できます。
public string ExtractText(SaveOptions options, int startPage = 0, int endPage = 0)
パラメーター
options
SaveOptions
保存オプション。
startPage
int
テキストの抽出を開始するページ。このパラメーターは多ページドキュメントに便利です。
endPage
int
テキストの抽出を終了するページ。このパラメーターは多ページドキュメントに便利です。
戻り値
抽出されたテキスト。
Fill(GraphicsPath)
任意のパスを塗りつぶします。
public void Fill(GraphicsPath shape)
パラメーター
shape
GraphicsPath
塗りつぶすパス。
FillAndStrokeText(string, Font, float, float, Brush, Pen)
グリフの内部を塗りつぶし、グリフの輪郭を描画することでテキスト文字列を追加します。
public void FillAndStrokeText(string text, Font font, float x, float y, Brush fillPaint, Pen stroke)
パラメーター
text
string
追加するテキスト。
font
Font
テキストを描画するために使用されるシステムフォント。
x
float
テキストの原点のX座標。
y
float
テキストの原点のY座標。
fillPaint
Brush
グリフの内部を塗りつぶすために使用される塗料。
stroke
Pen
グリフの輪郭を描画するために使用されるペン。
FillAndStrokeText(string, float[], Font, float, float, Brush, Pen)
グリフの内部を塗りつぶし、グリフの輪郭を描画することでテキスト文字列を追加します。
public void FillAndStrokeText(string text, float[] advances, Font font, float x, float y, Brush fillPaint, Pen stroke)
パラメーター
text
string
追加するテキスト。
advances
float[]
グリフの幅の配列。配列の長さは文字列のグリフの数と一致する必要があります。
font
Font
テキストを描画するために使用されるフォント。
x
float
テキストの原点のX座標。
y
float
テキストの原点のY座標。
fillPaint
Brush
グリフの内部を塗りつぶすために使用される塗料。
stroke
Pen
グリフの輪郭を描画するために使用されるペン。
FillAndStrokeText(string, DrFont, float, float, Brush, Pen)
グリフの内部を塗りつぶし、グリフの輪郭を描画することでテキスト文字列を追加します。
public void FillAndStrokeText(string text, DrFont drFont, float x, float y, Brush fillPaint, Pen stroke)
パラメーター
text
string
追加するテキスト。
drFont
DrFont
テキストを描画するために使用されるAspose.Foundation.Drawing.DrFont。カスタムフォントがカスタムフォルダーにある場合に使用できます。
x
float
テキストの原点のX座標。
y
float
テキストの原点のY座標。
fillPaint
Brush
グリフの内部を塗りつぶすために使用される塗料。
stroke
Pen
グリフの輪郭を描画するために使用されるペン。
FillAndStrokeText(string, float[], DrFont, float, float, Brush, Pen)
グリフの内部を塗りつぶし、グリフの輪郭を描画することでテキスト文字列を追加します。
public void FillAndStrokeText(string text, float[] advances, DrFont drFont, float x, float y, Brush fillPaint, Pen stroke)
パラメーター
text
string
追加するテキスト。
advances
float[]
グリフの幅の配列。配列の長さは文字列のグリフの数と一致する必要があります。
drFont
DrFont
テキストを描画するために使用されるAspose.Foundation.Drawing.DrFont。カスタムフォントがカスタムフォルダーにある場合に使用できます。
x
float
テキストの原点のX座標。
y
float
テキストの原点のY座標。
fillPaint
Brush
グリフの内部を塗りつぶすために使用される塗料。
stroke
Pen
グリフの輪郭を描画するために使用されるペン。
FillArc(double, double, double, double, double, double)
アークを塗りつぶします。
public void FillArc(double x, double y, double width, double height, double startAngle, double arcAngle)
パラメーター
x
double
アークの中心のX座標。
y
double
アークの中心のY座標。
width
double
外接矩形の幅。
height
double
外接矩形の高さ。
startAngle
double
アークの開始角度。
arcAngle
double
アークの角度。
FillOval(double, double, double, double)
楕円を塗りつぶします。
public void FillOval(double x, double y, double width, double height)
パラメーター
x
double
楕円の中心のX座標。
y
double
楕円の中心のY座標。
width
double
外接矩形の幅。
height
double
外接矩形の高さ。
FillPolygon(int[], int[], int)
多角形を塗りつぶします。
public void FillPolygon(int[] xPoints, int[] yPoints, int nPoints)
パラメーター
xPoints
int[]
点のX座標。
yPoints
int[]
点のY座標。
nPoints
int
点の数。
FillPolygon(double[], double[], int)
多角形を塗りつぶします。
public void FillPolygon(double[] xPoints, double[] yPoints, int nPoints)
パラメーター
xPoints
double[]
点のX座標。
yPoints
double[]
点のY座標。
nPoints
int
点の数。
FillRect(double, double, double, double)
矩形を塗りつぶします。
public void FillRect(double x, double y, double width, double height)
パラメーター
x
double
矩形の左上隅のX座標。
y
double
矩形の左上隅のY座標。
width
double
矩形の幅。
height
double
矩形の高さ。
FillRoundRect(double, double, double, double, double, double)
角丸矩形を塗りつぶします。
public void FillRoundRect(double x, double y, double width, double height, double arcWidth, double arcHeight)
パラメーター
x
double
矩形の左上隅のX座標。
y
double
矩形の左上隅のY座標。
width
double
矩形の幅。
height
double
矩形の高さ。
arcWidth
double
角を丸めるアークの外接矩形の幅。
arcHeight
double
角を丸めるアークの外接矩形の高さ。
FillText(string, Font, float, float)
グリフの内部を塗りつぶすことでテキスト文字列を追加します。
public void FillText(string text, Font font, float x, float y)
パラメーター
text
string
追加するテキスト。
font
Font
テキストを描画するために使用されるシステムフォント。
x
float
テキストの原点のX座標。
y
float
テキストの原点のY座標。
FillText(string, float[], Font, float, float)
グリフの内部を塗りつぶすことでテキスト文字列を追加します。
public void FillText(string text, float[] advances, Font font, float x, float y)
パラメーター
text
string
追加するテキスト。
advances
float[]
グリフの幅の配列。配列の長さは文字列のグリフの数と一致する必要があります。
font
Font
テキストを描画するために使用されるフォント。
x
float
テキストの原点のX座標。
y
float
テキストの原点のY座標。
FillText(string, DrFont, float, float)
グリフの内部を塗りつぶすことでテキスト文字列を追加します。
public void FillText(string text, DrFont drFont, float x, float y)
パラメーター
text
string
追加するテキスト。
drFont
DrFont
テキストを描画するために使用されるAspose.Foundation.Drawing.DrFont。カスタムフォントがカスタムフォルダーにある場合に使用できます。
x
float
テキストの原点のX座標。
y
float
テキストの原点のY座標。
FillText(string, float[], DrFont, float, float)
グリフの内部を塗りつぶすことでテキスト文字列を追加します。
public void FillText(string text, float[] advances, DrFont drFont, float x, float y)
パラメーター
text
string
追加するテキスト。
advances
float[]
グリフの幅の配列。配列の長さは文字列のグリフの数と一致する必要があります。
drFont
DrFont
テキストを描画するために使用されるAspose.Foundation.Drawing.DrFont。カスタムフォントがカスタムフォルダーにある場合に使用できます。
x
float
テキストの原点のX座標。
y
float
テキストの原点のY座標。
FillText(string, Font, float, float, Brush)
グリフの内部を塗りつぶすことでテキスト文字列を追加します。
public void FillText(string text, Font font, float x, float y, Brush fill)
パラメーター
text
string
追加するテキスト。
font
Font
テキストを描画するために使用されるシステムフォント。
x
float
テキストの原点のX座標。
y
float
テキストの原点のY座標。
fill
Brush
グリフを塗りつぶすために使用される塗料。
FillText(string, float[], Font, float, float, Brush)
グリフの内部を塗りつぶすことでテキスト文字列を追加します。
public void FillText(string text, float[] advances, Font font, float x, float y, Brush fill)
パラメーター
text
string
追加するテキスト。
advances
float[]
グリフの幅の配列。配列の長さは文字列のグリフの数と一致する必要があります。
font
Font
テキストを描画するために使用されるフォント。
x
float
テキストの原点のX座標。
y
float
テキストの原点のY座標。
fill
Brush
グリフを塗りつぶすために使用される塗料。
GetPaint()
現在のグラフィックス状態の塗料を取得します。
public Brush GetPaint()
戻り値
GetStroke()
現在のグラフィックス状態のストロークを取得します。
public Pen GetStroke()
戻り値
GetXmpMetadata()
PS/EPSファイルを読み取り、既存のXmpMetadataを抽出するか、存在しない場合は新しいものを追加します。
public XmpMetadata GetXmpMetadata()
戻り値
既存のまたは新しいXMPメタデータのインスタンス。
MergeToPdf(string, string[], SaveOptions)
PS/EPSファイルをデバイスにマージします。
public void MergeToPdf(string outPdfFilePath, string[] filesForMerge, SaveOptions options)
パラメーター
outPdfFilePath
string
出力PDFファイルのパス。
filesForMerge
string[]
このファイルとマージするPS/EPSファイルの配列。
options
SaveOptions
変換中に発生したエラーの出力を指定するフラグを含みます。
MergeToPdf(Stream, string[], SaveOptions)
PS/EPSファイルをデバイスにマージします。
public void MergeToPdf(Stream pdfStream, string[] filesForMerge, SaveOptions options)
パラメーター
pdfStream
Stream
出力PDFストリーム。
filesForMerge
string[]
このファイルとマージするPS/EPSファイルの配列。
options
SaveOptions
変換中に発生したエラーの出力を指定するフラグを含みます。
OpenPage(float, float)
新しいページを作成し、それを現在のページにします。
public void OpenPage(float width, float height)
パラメーター
width
float
新しいページの幅。
height
float
新しいページの高さ。
OpenPage(string)
ドキュメントのサイズで新しいページを作成し、それを現在のページにします。
public void OpenPage(string pageName = null)
パラメーター
pageName
string
新しいページの名前。nullの場合、ページの名前はページの順序番号になります。
OutlineText(string, Font, float, float)
グリフの輪郭を描くことでテキスト文字列を追加します。
public void OutlineText(string text, Font font, float x, float y)
パラメーター
text
string
追加するテキスト。
font
Font
テキストを描画するために使用されるシステムフォント。
x
float
テキストの原点のX座標。
y
float
テキストの原点のY座標。
OutlineText(string, float[], Font, float, float)
グリフの輪郭を描くことでテキスト文字列を追加します。
public void OutlineText(string text, float[] advances, Font font, float x, float y)
パラメーター
text
string
追加するテキスト。
advances
float[]
グリフの幅の配列。配列の長さは文字列のグリフの数と一致する必要があります。
font
Font
テキストを描画するために使用されるフォント。
x
float
テキストの原点のX座標。
y
float
テキストの原点のY座標。
OutlineText(string, DrFont, float, float)
グリフの輪郭を描くことでテキスト文字列を追加します。
public void OutlineText(string text, DrFont drFont, float x, float y)
パラメーター
text
string
追加するテキスト。
drFont
DrFont
テキストを描画するために使用されるAspose.Foundation.Drawing.DrFont。カスタムフォントがカスタムフォルダーにある場合に使用できます。
x
float
テキストの原点のX座標。
y
float
テキストの原点のY座標。
OutlineText(string, float[], DrFont, float, float)
グリフの輪郭を描くことでテキスト文字列を追加します。
public void OutlineText(string text, float[] advances, DrFont drFont, float x, float y)
パラメーター
text
string
追加するテキスト。
advances
float[]
グリフの幅の配列。配列の長さは文字列のグリフの数と一致する必要があります。
drFont
DrFont
テキストを描画するために使用されるAspose.Foundation.Drawing.DrFont。カスタムフォントがカスタムフォルダーにある場合に使用できます。
x
float
テキストの原点のX座標。
y
float
テキストの原点のY座標。
OutlineText(string, Font, float, float, Pen)
グリフの輪郭を描くことでテキスト文字列を追加します。
public void OutlineText(string text, Font font, float x, float y, Pen stroke)
パラメーター
text
string
追加するテキスト。
font
Font
テキストを描画するために使用されるシステムフォント。
x
float
テキストの原点のX座標。
y
float
テキストの原点のY座標。
stroke
Pen
グリフの輪郭を描画するために使用されるストローク。
OutlineText(string, float[], Font, float, float, Pen)
グリフの輪郭を描くことでテキスト文字列を追加します。
public void OutlineText(string text, float[] advances, Font font, float x, float y, Pen stroke)
パラメーター
text
string
追加するテキスト。
advances
float[]
グリフの幅の配列。配列の長さは文字列のグリフの数と一致する必要があります。
font
Font
テキストを描画するために使用されるシステムフォント。
x
float
テキストの原点のX座標。
y
float
テキストの原点のY座標。
stroke
Pen
グリフの輪郭を描画するために使用されるストローク。
OutlineText(string, DrFont, float, float, Pen)
グリフの輪郭を描くことでテキスト文字列を追加します。
public void OutlineText(string text, DrFont drFont, float x, float y, Pen stroke)
パラメーター
text
string
追加するテキスト。
drFont
DrFont
テキストを描画するために使用されるAspose.Foundation.Drawing.DrFont。カスタムフォントがカスタムフォルダーにある場合に使用できます。
x
float
テキストの原点のX座標。
y
float
テキストの原点のY座標。
stroke
Pen
グリフの輪郭を描画するために使用されるストローク。
OutlineText(string, float[], DrFont, float, float, Pen)
グリフの輪郭を描くことでテキスト文字列を追加します。
public void OutlineText(string text, float[] advances, DrFont drFont, float x, float y, Pen stroke)
パラメーター
text
string
追加するテキスト。
advances
float[]
グリフの幅の配列。配列の長さは文字列のグリフの数と一致する必要があります。
drFont
DrFont
テキストを描画するために使用されるAspose.Foundation.Drawing.DrFont。カスタムフォントがカスタムフォルダーにある場合に使用できます。
x
float
テキストの原点のX座標。
y
float
テキストの原点のY座標。
stroke
Pen
グリフの輪郭を描画するために使用されるストローク。
ResizeEps(string, SizeF, Units)
指定されたAspose.Page.EPS.PsDocumentをEPSファイルとしてリサイズします。このメソッドはEPSサイズを抽出した後にのみ使用されます。 既存の%%BoundingBoxを更新して初期EPSファイルを保存するか、新しいものが作成されます。ページの変換行列も設定されます。
public void ResizeEps(string outEpsFilePath, SizeF newSizeInUnits, Units units)
パラメーター
outEpsFilePath
string
出力EPSファイルのパス。
newSizeInUnits
SizeF
指定された単位でのEPS画像の新しいサイズ。
units
Units
新しいサイズの単位。ポイント、インチ、ミリメートル、センチメートル、初期サイズのパーセントが使用できます。
ResizeEps(Stream, SizeF, Units)
指定されたAspose.Page.EPS.PsDocumentをEPSファイルとしてリサイズします。このメソッドはEPSサイズを抽出した後にのみ使用されます。 既存の%%BoundingBoxを更新して初期EPSファイルを保存するか、新しいものが作成されます。ページの変換行列も設定されます。
public void ResizeEps(Stream epsStream, SizeF newSizeInUnits, Units units)
パラメーター
epsStream
Stream
出力EPSファイルのストリーム。
newSizeInUnits
SizeF
指定された単位でのEPS画像の新しいサイズ。
units
Units
新しいサイズの単位。ポイント、インチ、ミリメートル、センチメートル、初期サイズのパーセントが使用できます。
Rotate(float)
現在のグラフィックス状態に対して原点を中心に反時計回りに回転を追加します(現在の行列を回転)。
public void Rotate(float angleRadians)
パラメーター
angleRadians
float
回転の角度(ラジアン)。
Rotate(int)
現在のグラフィックス状態に対して原点を中心に反時計回りに回転を追加します(現在の行列を回転)。
public void Rotate(int angleDegrees)
パラメーター
angleDegrees
int
回転の角度(度)。
Save(Stream)
指定されたAspose.Page.EPS.PsDocumentをEPSファイルとして保存します。このメソッドはXMPメタデータを更新した後にのみ使用されます。 初期EPSファイルを既存のメタデータで保存するか、GetMetadataメソッドを呼び出す際に作成された新しいメタデータで保存します。 最後の場合、必要なPostScriptコードとEPSコメントが追加されます。
public void Save(Stream epsStream)
パラメーター
epsStream
Stream
出力EPSファイルのストリーム。
Save()
指定されたAspose.Page.EPS.PsDocumentをEPSファイルとして保存します。このメソッドはPsDocumentが最初から作成されたときにのみ使用されます。
public void Save()
SaveAsImage(ImageSaveOptions)
PS/EPSファイルを画像バイト配列に保存します。
public byte[][] SaveAsImage(ImageSaveOptions options)
パラメーター
options
ImageSaveOptions
画像の保存に必要なパラメーターと変換中に発生したエラーの出力を指定するフラグを含みます。
戻り値
byte[][]
画像のバイト。1ページにつき1つのバイト配列。
SaveAsPdf(string, PdfSaveOptions)
PS/EPSファイルをPDFファイルとして保存します。
public void SaveAsPdf(string outPdfFilePath, PdfSaveOptions options)
パラメーター
outPdfFilePath
string
出力PDFファイルのパス。
options
PdfSaveOptions
変換中に発生したエラーの出力を指定するフラグを含みます。
SaveAsPdf(Stream, PdfSaveOptions)
PS/EPSファイルをPDFストリームとして保存します。
public void SaveAsPdf(Stream pdfStream, PdfSaveOptions options)
パラメーター
pdfStream
Stream
出力PDFストリーム。
options
PdfSaveOptions
変換中に発生したエラーの出力を指定するフラグを含みます。
SaveImageAsEps(Stream, Stream, PsSaveOptions)
入力ストリームからPNG/JPEG/TIFF/BMP/GIF/EMF画像をEPS出力ストリームに保存します。
public static void SaveImageAsEps(Stream imageStream, Stream epsStream, PsSaveOptions options)
パラメーター
imageStream
Stream
画像入力ストリーム。
epsStream
Stream
EPS出力ストリーム。
options
PsSaveOptions
変換中に発生したエラーの出力を指定するパラメーターを含みます。
SaveImageAsEps(string, string, PsSaveOptions)
ファイルからPNG/JPEG/TIFF/BMP/GIF/EMF画像をEPSファイルとして保存します。
public static void SaveImageAsEps(string imageFilePath, string epsFilePath, PsSaveOptions options)
パラメーター
imageFilePath
string
画像ファイルのパス。
epsFilePath
string
EPSファイルのパス。
options
PsSaveOptions
変換中に発生したエラーの出力を指定するパラメーターを含みます。
SaveImageAsEps(Bitmap, string, PsSaveOptions)
BitmapオブジェクトをEPSファイルとして保存します。
public static void SaveImageAsEps(Bitmap image, string epsFilePath, PsSaveOptions options)
パラメーター
image
Bitmap
画像。
epsFilePath
string
EPSファイルのパス。
options
PsSaveOptions
変換中に発生したエラーの出力を指定するパラメーターを含みます。
SaveImageAsEps(Bitmap, Stream, PsSaveOptions)
BitmapオブジェクトをEPS出力ストリームに保存します。
public static void SaveImageAsEps(Bitmap image, Stream epsStream, PsSaveOptions options)
パラメーター
image
Bitmap
画像。
epsStream
Stream
EPS出力ストリーム。
options
PsSaveOptions
変換中に発生したエラーの出力を指定するパラメーターを含みます。
Scale(float, float)
現在のグラフィックス状態にスケールを追加します(現在の行列をスケール)。
public void Scale(float xScale, float yScale)
パラメーター
xScale
float
X軸のスケール。
yScale
float
Y軸のスケール。
SetPageDevice(Dictionary<string, object=”">)
ページデバイスパラメーターを設定します(PostScript仕様の"setpagedevice"オペレーターを参照)。 これにはページサイズや色などが含まれます。
public void SetPageDevice(Dictionary<string, object=""> pageParams)
パラメーター
pageParams
Dictionary<string, object>
ページのパラメーター。この辞書にはページサイズや色などが含まれます。
SetPageSize(float, float)
ページサイズを設定します。1つのドキュメント内で異なるサイズのページを作成するには、このメソッドの直後にAspose.Page.EPS.PsDocument.SetPageDevice(System.Collections.Generic.Dictionary{System.String,System.Object})メソッドを使用します。
public void SetPageSize(float width, float height)
パラメーター
width
float
結果のPostScriptファイルのページの幅。
height
float
結果のPostScriptファイルのページの高さ。
SetPaint(Brush)
現在のグラフィックス状態の塗料を設定します。
public void SetPaint(Brush paint)
パラメーター
paint
[Brush](https://