• 大小: 237.36 KB
    文件类型: .rar
    金币: 2
    下载: 1 次
    发布日期: 2020-12-14
  • 语言: C#
  • 标签: 拖拽  缩放  旋转  预览  

资源简介

实现了C# Winform的仿Windows图片浏览器,能够缩放、旋转、拖拽、预览,重要的是还支持加载GIF图片

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.Text;
using System.Drawing;
using System.Drawing.Imaging;

namespace KaiwaProjects
{
    public class GifImage
    {
        private KpImageViewer KpViewer;
        private Image gif;
        private frameDimension dimension;
        private int frameCount;
        private int rotation = 0;
        private Bitmap currentframeBmp = null;

        public GifImage(KpImageViewer KpViewer Image img)
        {
            this.KpViewer = KpViewer;
            this.gif = img;
            this.dimension = new frameDimension(gif.frameDimensionsList[0]);
            this.frameCount = gif.GetframeCount(dimension);

            this.gif.SelectActiveframe(dimension 0);

            this.currentframeBmp = (Bitmap)gi

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件      59392  2011-09-14 15:02  17869351KpImageViewerV2_140_src\bin\Release\KP-ImageViewerV2.dll

     文件      95744  2011-09-14 15:02  17869351KpImageViewerV2_140_src\bin\Release\KP-ImageViewerV2.pdb

     文件       1912  2011-08-02 15:27  17869351KpImageViewerV2_140_src\GifImage.cs

     文件       3084  2010-04-14 10:30  17869351KpImageViewerV2_140_src\KP-DrawEngine.cs

     文件      47889  2011-08-02 15:41  17869351KpImageViewerV2_140_src\KP-Drawobject.cs

     文件      38803  2011-08-02 15:55  17869351KpImageViewerV2_140_src\KP-ImageViewerV2.cs

     文件       5893  2011-08-02 15:28  17869351KpImageViewerV2_140_src\KP-ImageViewerV2.csproj

     文件        452  2010-04-14 11:05  17869351KpImageViewerV2_140_src\KP-ImageViewerV2.csproj.user

     文件      18510  2010-05-05 09:21  17869351KpImageViewerV2_140_src\KP-ImageViewerV2.Designer.cs

     文件       5814  2010-05-05 09:21  17869351KpImageViewerV2_140_src\KP-ImageViewerV2.resx

     文件       2603  2011-09-14 15:06  17869351KpImageViewerV2_140_src\KP-ImageViewerV2.sln

    ..A..H.     41472  2011-09-14 15:06  17869351KpImageViewerV2_140_src\KP-ImageViewerV2.suo

     文件       3804  2010-06-21 19:07  17869351KpImageViewerV2_140_src\MultiPageImage.cs

     文件       6192  2011-09-14 15:16  17869351KpImageViewerV2_140_src\obj\Release\DesignTimeResolveAssemblyReferencesInput.cache

     文件       2056  2011-09-14 15:02  17869351KpImageViewerV2_140_src\obj\Release\GenerateResource-ResGen.read.1.tlog

     文件        680  2011-09-14 15:02  17869351KpImageViewerV2_140_src\obj\Release\GenerateResource-ResGen.write.1.tlog

     文件          2  2011-09-14 15:02  17869351KpImageViewerV2_140_src\obj\Release\GenerateResource.read.1.tlog

     文件        180  2011-09-14 15:02  17869351KpImageViewerV2_140_src\obj\Release\KaiwaProjects.KpImageViewer.resources

     文件      15488  2011-09-14 15:02  17869351KpImageViewerV2_140_src\obj\Release\KaiwaProjects.Properties.Resources.resources

     文件       1040  2011-09-14 15:02  17869351KpImageViewerV2_140_src\obj\Release\KP-ImageViewerV2.csproj.FileListAbsolute.txt

     文件      59392  2011-09-14 15:02  17869351KpImageViewerV2_140_src\obj\Release\KP-ImageViewerV2.dll

     文件      95744  2011-09-14 15:02  17869351KpImageViewerV2_140_src\obj\Release\KP-ImageViewerV2.pdb

     文件       5632  2011-09-14 15:00  17869351KpImageViewerV2_140_src\obj\Release\TempPE\Properties.Resources.Designer.cs.dll

     文件        250  2010-02-03 14:44  17869351KpImageViewerV2_140_src\PanelDoubleBuffered.cs

     文件       1472  2011-08-02 16:00  17869351KpImageViewerV2_140_src\Properties\AssemblyInfo.cs

     文件       5685  2010-04-29 16:21  17869351KpImageViewerV2_140_src\Properties\Resources.Designer.cs

     文件       8833  2010-04-29 16:21  17869351KpImageViewerV2_140_src\Properties\Resources.resx

     文件        604  2010-04-29 16:21  17869351KpImageViewerV2_140_src\Resources\btnBack.png

     文件        221  2010-04-29 16:21  17869351KpImageViewerV2_140_src\Resources\btnDrag.png

     文件        846  2010-04-29 16:20  17869351KpImageViewerV2_140_src\Resources\btnFitToScreen.png

............此处省略60个文件信息

评论

共有 条评论