パディングサイズの設定
Namespace: fvalgcliAssembly: fvalgcli (in fvalgcli.dll) Version: 3.1.0.0 (3.1.0.11)
Syntax
C# |
---|
public static int fnFIE_img_set_padding_size(
int exp
) |
Visual Basic |
---|
Public Shared Function fnFIE_img_set_padding_size (
exp As Integer
) As Integer |
Parameters
- exp
- Type: System..::..Int32
ステップサイズ 2^n の乗数n (0≦n≦10) デフォルト=3
Return Value
Type:
Int32
fnFIE_img_root_alloc() 又は fnFIE_img_root_realloc() 時に、ステップ(画像メモリ幅)を
何バイト単位にするかを 2^n の指数nで設定します。
画像幅がこの倍数で無い場合は、 適切なパディングが挿入され、ステップは 2^n の倍数バイトになります。
但し、1画素のバイト数が 2^n よりも大きい場合、ステップは1画素のバイト数の倍数になります。
本関数を1度も呼ばなかった場合のデフォルト値は n=3 です。
特別な理由が無い限りデフォルトの n=3 のまま使用することを推奨します。
Examples
C# | Copy |
---|
using System;
using System.Collections.Generic;
using System.Text;
using fvalgcli;
namespace TC
{
public partial class FIE
{
[FvPluginExecute]
public void fnFIE_img_set_padding_size()
{
}
}
} |
Visual Basic | Copy |
---|
Imports System.Collections.Generic
Imports System.Text
Imports fvalgcli
Public Partial Class FIE
<FvPluginExecute> _
Public Sub fnFIE_img_set_padding_size()
End Sub
End Class |
See Also