回复 13楼leadcom的帖子
请使用以下代码进行图片合并:
- private void CombineFloater()
- {
- if (rivViewer.Image.HasRegion)
- rivViewer.Image.MakeRegionEmpty();
- else if ((rivViewer.FloaterOpacity > 0.0) && (rivViewer.Floater != null))
- {
- DisableAllInteractiveModes(rivViewer);
- RasterImage alpha = rivViewer.Floater.CreateAlphaImage();
- LeadRect rc = new LeadRect(0, 0, rivViewer.Floater.Width, rivViewer.Floater.Height);
- Leadtools.ImageProcessing.Effects.FeatherAlphaBlendCommand fabCmd = new Leadtools.ImageProcessing.Effects.FeatherAlphaBlendCommand(rivViewer.Floater,
- new LeadPoint(0, 0), rc, alpha, new LeadPoint(0, 0));
- fabCmd.Run(rivViewer.Image);
- rivViewer.Floater = null;
- rivViewer.Refresh();
- }
- }
复制代码 |