登录
首页 » c,c++ » 通过JPG、PCX、GIF解码方法来打开BMP、JPG、PCX、GIF格式图像

通过JPG、PCX、GIF解码方法来打开BMP、JPG、PCX、GIF格式图像

于 2022-03-19 发布 文件大小:542.02 kB
0 101
下载积分: 2 下载次数: 1

代码说明:

通过JPG、PCX、GIF解码方法来打开BMP、JPG、PCX、GIF格式图像

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • Free release of math library, IEEE754 function of source
    免费发布的数学库,IEEE754函数源码-Free release of math library, IEEE754 function of source
    2022-04-01 06:08:30下载
    积分:1
  • 半透明示例
    半透明示例
    2013-12-01下载
    积分:1
  • stm32 pwm 定时器 1 设置
    此程序在 stm32f407vgt6 单片机上测试。在这个程序中,timer1 配置为 pwm keil 环境中的应用程序。
    2022-08-12 10:49:42下载
    积分:1
  • C# 制作系统服务 实例源码下载
    附件中有详细的安装使用文档,大概步骤如下:1.新建Windows项目,选择"Windows服务"类型的工程。2.生成的Program.cs文件中,定义了服务启动的Main函数。 代码 namespace WindowsService1{    static class Program    {        ///         /// 应用程序的主入口点。        ///         static void Main()        {            ServiceBase[] ServicesToRun;            ServicesToRun = new ServiceBase[]             {                 new Service1()             };            ServiceBase.Run(ServicesToRun);        }    }}  3.在新建的工程中,点击Service1.cs文件,切换到代码视图,生成的代码继承于ServiceBase基类,并重载了OnStart和OnStop方法。我在这个文件中进行了一些简单的操作,就是在服务开始的时候,定义一个定时器,然后每隔1秒钟,向文件中写入当前时间。 代码 namespace WindowsService1{    public partial class Service1 : ServiceBase    {        Timer timer;        public Service1()        {            InitializeComponent();        }        protected override void OnStart(string[] args)        {            timer = new Timer(1000);            timer.Elapsed  = new ElapsedEventHandler(timer_Elapsed);            timer.Start();        }        protected override void OnStop()        {            timer.Stop();            timer.Dispose();        }        void timer_Elapsed(object sender, ElapsedEventArgs e)        {            string filePath = AppDomain.CurrentDomain.BaseDirectory   "test.txt";            StreamWriter sw = null;            if (!File.Exists(filePath))            {                sw = File.CreateText(filePath);            }            else            {                sw = File.AppendText(filePath);            }            sw.Write("访问时间:" DateTime.Now.ToString() Environment.NewLine);            sw.Close();        }    }}4.向工程中添加一个安装程序类。 4.在新添加的安装程序类中,设定服务的名称,启动方式,账号名和密码等信息。 代码 namespace WindowsService1{    partial class Installer1    {        ///         /// 必需的设计器变量。        ///         private System.ComponentModel.IContainer components = null;        private System.ServiceProcess.ServiceProcessInstaller spInstaller;        private System.ServiceProcess.ServiceInstaller sInstaller;        ///          /// 清理所有正在使用的资源。        ///         /// 如果应释放托管资源,为 true;否则为 false。        protected override void Dispose(bool disposing)        {            if (disposing && (components != null))            {                components.Dispose();            }            base.Dispose(disposing);        }        #region 组件设计器生成的代码        ///         /// 设计器支持所需的方法 - 不要        /// 使用代码编辑器修改此方法的内容。        ///         private void InitializeComponent()        {            components = new System.ComponentModel.Container();            // 创建ServiceProcessInstaller对象和ServiceInstaller对象            this.spInstaller =new System.ServiceProcess.ServiceProcessInstaller();            this.sInstaller = new System.ServiceProcess.ServiceInstaller();            // 设定ServiceProcessInstaller对象的帐号、用户名和密码等信息            this.spInstaller.Account = System.ServiceProcess.ServiceAccount.LocalSystem;            this.spInstaller.Password = null;            this.spInstaller.Username = null;            // 设定服务的名称            this.sInstaller.ServiceName = "WindowsService1";            //设定服务启动的方式            this.sInstaller.StartType = System.ServiceProcess.ServiceStartMode.Automatic;            this.Installers.AddRange(new System.Configuration.Install.Installer[] {            this.spInstaller,this.sInstaller});        }        #endregion    }}5.生成工程,在bin目录下会生成exe文件。如果直接运行exe文件的话,是不能执行的,需要使用安装Windows服务用到一个名为InstallUtil.exe的命令行工具,打开命令行工具,转到InstallUtil.exe的目录下,我安装的是VS 2010,对应的目录为:C:WindowsMicrosoft.NETFrameworkv4.0.30319InstallUtil.exe,然后执行InstallUtil.exe 待执行的exe文件的目录,如:InstallUtil.exe F:MyProjectWindowsService1WindowsService1inDebugWindowsService1.exe。执行成功后,会在Windows的服务中,出现了刚刚添加的服务的名称。 6.启动该服务,这时打开binDebug文件夹,发现已经生成了一个test.txt的文件,里面记录了时间。这说明服务已经正式开始执行。7.停止服务的操作也和简单,打开命令行工具,转到C:WindowsMicrosoft.NETFrameworkv4.0.30319目录,然后执行InstallUtil.exe - u F:MyProjectWindowsService1WindowsService1inDebugWindowsService1.exe命令就可以了。
    2015-04-21下载
    积分:1
  • C# 模拟请求HttpWebRequest 类源码
    模拟请求,基于HttpWebRequest封装好的一个类,自动记下和发送Cookie,你只管调用方法就行了,很实用
    2014-10-28下载
    积分:1
  • 顺序表查找
    建立一张顺序表,利用改进的顺序查找算法对输入的关键字进行查找,并返回所在的位置。
    2022-09-06 21:15:03下载
    积分:1
  • 自己工作的某一个项目中,上位机与奥姆龙PLC的各种通讯资料及代码
    自己以前做过的一个项目,里面带有代码。并且内有文档,有 FINS协议的讲解,和具体项目的协议内容。
    2022-06-14 14:01:08下载
    积分:1
  • 谱减法
    谱减法滤波,最基础的代码,就是带噪语音信号减去噪声普,然后加上相位,就形成纯净的语音信号,用c语言实现
    2022-04-22 19:12:34下载
    积分:1
  • C04
    本章实现了聊天室系统,功能包括用户登录、自动注册、用户发言、实时浏览发言、注销身份等。(This chapter to achieve the chat room system, features include user login, automatically register the user to speak, real-time views to speak, write-off status.)
    2009-02-13 12:38:20下载
    积分:1
  • [C#] Cryptex
    说明:  C# Cypter C#的加密壳 可以加密PE文件 过杀毒主防(The encrypted shell of C Cypter C can encrypt PE files and prevent virus)
    2019-06-25 18:24:38下载
    积分:1
  • 696516资源总数
  • 106442会员总数
  • 11今日下载