CILinearGradient クラス
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
ある色を別の色に直線的にフェードするグラデーション。
public class CILinearGradient : CoreImage.CIFilter, CoreImage.ICILinearGradientProtocol, IDisposable
type CILinearGradient = class
inherit CIFilter
interface ICILinearGradientProtocol
interface INativeObject
interface IDisposable
interface ICIFilterProtocol
- 継承
- 派生
- 実装
注釈
次の例は、使用中のこのフィルターを示しています
var point0 = new CIVector(0, 0); // Default [0 0]
var point1 = new CIVector(250, 250); // Default [200 200]
var linearGrad = new CILinearGradient() {
Point0 = point0,
Point1 = point1,
Color0 = new CIColor (UIColor.Red),
Color1 = new CIColor (UIColor.Blue)
};
// The Generator Filters need to be cropped before they can be displayed
var crop = new CICrop () {
Image = linearGrad.OutputImage,
// Create the Bounds based on the Size of the application Window. (UIWindow)
Rectangle = new CIVector (0, 0, window.Bounds.Width, window.Bounds.Height)
};
// Get the final Generated image from the Crop filter
var output = crop.OutputImage;
// To render the results, we need to create a context, and then
// use one of the context rendering APIs, in this case, we render the
// result into a CoreGraphics image, which is merely a useful representation
//
var context = CIContext.FromOptions (null);
var cgimage = context.CreateCGImage (output, output.Extent);
// The above cgimage can be added to a screen view, for example, this
// would add it to a UIImageView on the screen:
myImageView.Image = UIImage.FromImage (cgimage);
次の出力が生成されます。

コンストラクター
| 名前 | 説明 |
|---|---|
| CILinearGradient() |
既定値を使用して新しい CILinearGradient を作成します。 |
| CILinearGradient(NativeHandle) |
アンマネージ オブジェクトのマネージド表現を作成するときに使用されるコンストラクター。 ランタイムによって呼び出されます。 |
| CILinearGradient(NSCoder) |
unarchiver オブジェクトに格納されているデータからオブジェクトを初期化するコンストラクター。 |
| CILinearGradient(NSObjectFlag) |
初期化をスキップし、単にオブジェクトを割り当てるために派生クラスを呼び出すコンストラクター。 |
| CILinearGradient(String) |
指定した名前の新しい CILinearGradient を作成します。 |
プロパティ
| 名前 | 説明 |
|---|---|
| AccessibilityAttributedUserInputLabels |
ある色を別の色に直線的にフェードするグラデーション。 (継承元 NSObject) |
| AccessibilityRespondsToUserInteraction |
ある色を別の色に直線的にフェードするグラデーション。 (継承元 NSObject) |
| AccessibilityTextualContext |
ある色を別の色に直線的にフェードするグラデーション。 (継承元 NSObject) |
| AccessibilityUserInputLabels |
ある色を別の色に直線的にフェードするグラデーション。 (継承元 NSObject) |
| Attributes |
フィルターの構成可能な属性。 (継承元 CIFilter) |
| Class |
ある色を別の色に直線的にフェードするグラデーション。 (継承元 NSObject) |
| ClassHandle |
このクラスの Objective-C クラス ハンドル。 (継承元 CIFilter) |
| Color0 |
InputPoint0の色を取得または設定します。 |
| Color1 |
InputPoint1の色を取得または設定します。 |
| DebugDescription |
ある色を別の色に直線的にフェードするグラデーション。 (継承元 NSObject) |
| Description |
ある色を別の色に直線的にフェードするグラデーション。 (継承元 NSObject) |
| ExposedBindings |
ある色を別の色に直線的にフェードするグラデーション。 (継承元 NSObject) |
| Handle |
アンマネージ オブジェクト表現へのハンドル (ポインター)。 (継承元 NSObject) |
| InputKeys |
フィルターの入力キーの名前を含む配列を取得します。 (継承元 CIFilter) |
| InputPoint0 |
最初のポイントを取得または設定します。 |
| InputPoint1 |
2 番目のポイントを取得または設定します。 |
| IsDirectBinding |
このインスタンスが直接 Objective-C バインドを使用するかどうかを示す値を取得または設定します。 (継承元 NSObject) |
| IsProxy |
ある色を別の色に直線的にフェードするグラデーション。 (継承元 NSObject) |
| Item[NSString] |
|
| Name |
フィルター名を取得します。 (継承元 CIFilter) |
| OutputImage |
ある色を別の色に直線的にフェードするグラデーション。 |
| OutputKeys |
フィルターの出力キーの名前を含む配列を取得します。 (継承元 CIFilter) |
| RetainCount |
ある色を別の色に直線的にフェードするグラデーション。 (継承元 NSObject) |
| Self |
ある色を別の色に直線的にフェードするグラデーション。 (継承元 NSObject) |
| Superclass |
ある色を別の色に直線的にフェードするグラデーション。 (継承元 NSObject) |
| SuperHandle |
この NSObjectの基底クラスのメソッドを表すために使用されるハンドル。 (継承元 NSObject) |
| Zone |
ある色を別の色に直線的にフェードするグラデーション。 (継承元 NSObject) |