Visual Basic (Declaration) | |
---|---|
Public Class PuzzleEffectCommandBitmapEffect Inherits RasterCommandBitmapEffect |
Visual Basic (Usage) | Copy Code |
---|---|
|
C# | |
---|---|
public class PuzzleEffectCommandBitmapEffect : RasterCommandBitmapEffect |
C++/CLI | |
---|---|
public ref class PuzzleEffectCommandBitmapEffect : public RasterCommandBitmapEffect |
XAML Property Element Usage | |
---|---|
PuzzleEffectCommandBitmapEffect ... |
XAML Property Element Usage | |
---|---|
PuzzleEffectCommandBitmapEffect ... |
Visual Basic | Copy Code |
---|---|
Public Sub PuzzleEffectCommandBitmapEffectExample(ByVal element As FrameworkElement) |
C# | Copy Code |
---|---|
public void PuzzleEffectCommandBitmapEffectExample(FrameworkElement element) |
XAML | Copy Code |
---|---|
<Page Title="CSAnimateEffect" Height="391" Width="300" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:lteffects="clr-namespace:Leadtools.Windows.Media.Effects.SpecialEffects;assembly=Leadtools.Windows.Media.Effects"> |
Splits the image into a certain number of blocks according to the flags. If the PuzzleEffectCommandBitmapEffectsFlags.Size flag is set, then the image will be divided into blocks using the XBlock and YBlock properties for the dimensions of the blocks. If the PuzzleEffectCommandBitmapEffectsFlags.Count flag is set, then the image will be divided into blocks using the xblock and ybBlock values for the number of blocks per row and number of blocks per column. If the PuzzleEffectCommandBitmapEffectsFlags.Resize flag is not set, the edge blocks might have a different size than the inner blocks. This means the edge blocks will be manipulated differently than the inner blocks. The inner blocks that have the same dimensions will be shuffled around. The right edge blocks will be shuffled together and the bottom edge blocks will be shuffled together. If the PuzzleEffectCommandBitmapEffectsFlags.Resize flag is set, the image will be resized to be sure that all blocks have the same dimensions. In this case, the edge blocks will not be treated differently than the inner blocks. If the PuzzleEffectCommandBitmapEffectsFlags.Border flag is set, borders will be drawn with the color set in the BorderColor property. If the PuzzleEffectCommandBitmapEffectsFlags.Border flag is not set, no borders will be drawn. If the PuzzleEffectCommandBitmapEffectsFlags.Shuffle flag is not set, the blocks will appear in their original positions. If the PuzzleEffectCommandBitmapEffectsFlags.Shuffle flag is set then the blocks will appear randomized. The randomization process will be controlled by the Randomize property, as follows: If the randomize value is 0, the command will select the starting point for the randomize process. You will get a different result every time you call the command with the randomize value = 0. If the randomize value is greater than 0, the command will use this value as a starting point for the randomize process. You will get the same result every time you call the command with the same randomize value > 0. Edge blocks that have the same size as inner blocks might move into the middle of the resulting image. Edge blocks with a different size than inner blocks will remain on the edge. You must set the PuzzleEffectCommandBitmapEffectsFlags.Size flag or the Count flag (but not both) for the command to affect the image. If you set the flags to 0, the command leaves the image unchanged. This command supports all bits/pixel supported by LEADTOOLS for WPF. This command does not support signed data images.
System.Object
System.Windows.Threading.DispatcherObject
System.Windows.DependencyObject
System.Windows.Freezable
System.Windows.Media.Animation.Animatable
System.Windows.Media.Effects.BitmapEffect
Leadtools.Windows.Media.Effects.RasterCommandBitmapEffect
Leadtools.Windows.Media.Effects.SpecialEffects.PuzzleEffectCommandBitmapEffect
Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Vista, Windows Server 2003 family, Windows Server 2008 family
Reference
PuzzleEffectCommandBitmapEffect MembersLeadtools.Windows.Media.Effects.SpecialEffects Namespace
MosaicCommandBitmapEffect Class
PixelateCommandBitmapEffect Class
CubismCommandBitmapEffect Class
DiceEffectCommandBitmapEffect Class
RingEffectCommandBitmapEffect Class
BricksTextureCommandBitmapEffect Class
CloudsCommandBitmapEffect Class
ColoredBallsCommandBitmapEffect Class
DiffuseGlowCommandBitmapEffect Class
FragmentCommandBitmapEffect Class
HalfTonePatternCommandBitmapEffect Class
MaskConvolutionCommandBitmapEffect Class
MosaicTilesCommandBitmapEffect Class
PerspectiveCommandBitmapEffect Class
PlasmaCommandBitmapEffect Class
PointillistCommandBitmapEffect Class
RomanMosaicCommandBitmapEffect Class
VignnetCommandBitmapEffect Class
ZigZagCommandBitmapEffect Class