Totemsoft.SDK.Framework4.Graphics.Image.Serialized 命名空间
来源:互联网 发布:淘宝上日本直邮几天 编辑:程序博客网 时间:2024/05/17 12:23
Totemsoft.SDK.Framework4.Graphics.Image.Serialized 命名空间
提供图像的序列化处理支持
说明 Introduction
将位图 System.Drawing.Bitmap 结构数据序列化处理类,该类可以在 Bitmap 结构与字节数组间的通用转换。
成员 Members
- Totemsoft.SDK.Framework4.Graphics.Image.Serialized 命名空间
- Totemsoft.SDK.Framework4.Graphics.Image.Serialized.SerializeImage
- Totemsoft.SDK.Framework4.Graphics.Image.Serialized.Exceptions 命名空间
- Totemsoft.SDK.Framework4.Graphics.Image.Serialized.Exceptions.ImageOverFlowException
版本信息 Version Information
Created date: 2017年04月17日
Last modify date: 2017年05月09日
Programmer: Eddie Chan
Version: 1.01.03
版权信息 Copyright Information
Copyright © 2017 Totemsoft Inc. All rights reserved.
Totemsoft is a trademark of Imago organization.
SerializeImage 类
方法 Methods
异常 Exceptions
ImagePixelFormatException 位于 Totemsoft.SDK.Framework4.Graphics.Image.Exceptions 命名空间。
示例 Examples
Visual C Sharp Code
using System.Drawing;using System.Drawing.Imaging;using Totemsoft.SDK.Framework4.Graphics.Serialized;public class TestSerializeImageClass{ public void CloneBitmap() { Bitmap objBitmap = Bitmap.FromFile("D:\\TestSerialized.png"); Size objSize = objBitmap.Size; try { byte[] objBytes = SerializeImage.FromBitmap(objBitmap); Bitmap objNewBitmap = SerializeImage.FromBytes(objBytes, objSize); objNewBitmap.Save("D:\\SerializedClone.png", ImageFormat.Png); } catch { //TODO: Any exception code. } }}
Visual Basic Code
Imports System.DrawingImports System.Drawing.ImagingImports Totemsoft.SDK.Framework4.Graphics.Image.SerializedPublic Class TestSerializeImageClass Public Sub CloneBitmap() Dim objBitmap As Bitmap = Bitmap.FromFile("D:\TestSerialized.png") Dim objSize As Size = objBitmap.Size Try Dim objBytes As Byte() = SerializeImage.FromBitmap(objBitmap) Dim objNewBitmap As Bitmap = SerializeImage.FromBytes(objBytes, objSize) objNewBitmap.Save("D:\SerializedClone.png", ImageFormat.Png) Catch ' TODO: Any exception code. End Try End SubEnd Class
Copyright © 2017 Totemsoft Inc. All rights reserved.
0 0
- Totemsoft.SDK.Framework4.Graphics.Image.Serialized 命名空间
- Totemsoft.SDK.Framework4.Graphics.Image.Sliced 命名空间
- Totemsoft.SDK.Framework4.Files.Formatted 命名空间
- Graphics SDK
- [Flex]Flex SDK 4(Gumbo)命名空间(NameSpace)概述
- Flex SDK 4(Gumbo)命名空间(NameSpace)概述
- ArcGIS Runtime WPF SDK (2)命名空间解析
- 命名空间
- 命名空间
- 命名空间
- 命名空间
- 命名空间
- 命名空间
- 命名空间
- 命名空间
- 命名空间
- 命名空间
- 命名空间
- Spring Cloud微服架构之分布式配置中心(续)
- 关于web.xml中<web-app>报错解决方案
- 移动端将base64传给后台,后台解析出的图片一部分是白色的
- Android查看当前应用通知开启状态
- 内网穿透
- Totemsoft.SDK.Framework4.Graphics.Image.Serialized 命名空间
- ios开发之NSCharacterSet
- 全面理解虚拟DOM,实现虚拟DOM
- JS的内存问题
- iOS仿酒店入住离店日历(Calendar)选择
- 使用Maven搭建SSM框架教程
- 20170512
- No property sql found for type xxx.xxx.entity.UserdefinedGroup
- 水题一道----奶牛政坛