本文整理汇总了C#中Gdk.Pixbuf.CompositeColorSimple方法的典型用法代码示例。如果您正苦于以下问题:C# Gdk.Pixbuf.CompositeColorSimple方法的具体用法?C# Gdk.Pixbuf.CompositeColorSimple怎么用?C# Gdk.Pixbuf.CompositeColorSimple使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Gdk.Pixbuf
的用法示例。
在下文中一共展示了Gdk.Pixbuf.CompositeColorSimple方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: OnControllerNodeBeingProcessed
/// <summary>
/// If sequencing, selects the next symbol of the list.
/// </summary>
/// <param name="sender">
/// A <see cref="System.Object"/>
/// </param>
/// <param name="args">
/// A <see cref="EventArgas"/>
/// </param>
private void OnControllerNodeBeingProcessed(object sender,
NodeBeingProcessedArgs _args)
{
Application.Invoke(sender, _args,
delegate(object resender, EventArgs args)
{
NodeBeingProcessedArgs a = args as NodeBeingProcessedArgs;
if(!sequencingFinished)
{
// We are sequencing.
// Selects the new first.
symbolsIV.SelectPath(processedPath);
symbolsIV.ScrollToPath(processedPath,1,0.5f);
processedPath.Next();
}
else
{
// We are matching
SequenceNode node = (SequenceNode) a.Node;
node.Select();
Token t = Token.Join(node.Sequence, "");
sequenceNodeImage = t.Image.CreatePixbuf();
sequenceMatchingImageArea.Image = sequenceNodeImage.Copy();
sequenceNodeImage =
sequenceNodeImage.CompositeColorSimple(sequenceNodeImage.Width,
sequenceNodeImage.Height,
Gdk.InterpType.Nearest,
100, 1,
0xAAAAAA,0xAAAAAA);
matchingResultLbl.Markup = "-";
tokenizingRulesTV.Selection.UnselectAll();
tokenizingRulesTV.ScrollToPoint(0,0);
if(controller.StepMode == ControllerStepMode.StepByStep)
{
tokenizingNextButtonsAlign.Sensitive = true;
}
}
});
}