Jump to content

is CreateAliasedBitmap() the function to creat Bitmap from..


Zammy

Recommended Posts

Hmm...

public override void Render(EffectConfigToken parameters, RenderArgs dstArgs, RenderArgs srcArgs, Rectangle[]rois, int startIndex, int length)

{

//PdnRegion selectionRegion = EnvironmentParameters.GetSelection(srcArgs.Bounds);

//for (int i = startIndex; i < startIndex + length; ++i)

//{

// Rectangle rect = rois;

// for (int y = rect.Top; y < rect.Bottom; ++y)

// {

// for (int x = rect.Left; x < rect.Right; ++x)

// {

// // Render Code Here

// }

// }

//}

this.SetRenderInfo(parameters, dstArgs, srcArgs);

this.Render(parameters, dstArgs, srcArgs, PdnRegion.CreateEmpty());

if (animWindow == null)

{

this.animWindow = new AnimationWindow();

}

if (((EffectPluginConfigToken)parameters).Frames == null)

{

this.animWindow.Frames = ((EffectPluginConfigToken)parameters).Frames;

}

if (animWindow.Picture == null)

{

this.animWindow.Picture = srcArgs.Surface.CreateAliasedBitmap();

}

if (animWindow.WindowShown == false)

{

this.animWindow.ShowDialog();

this.animWindow.StartAnimation();

}

}

I am not sure what exactlly I am suppose to do with your advice. If you can give me a small snippet it would be great.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...