thedeoxen / FastedBitmap

FastedBitmap this is library for fast work with Bitmap in C#. Class FastBitmap this is a wrapper for Bitmap, than gives fast methods getPixel/setPixel.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Readme

Description

FastedBitmap this is library for fast work with Bitmap in C#. Class FastBitmap this is a wrapper for Bitmap, than gives fast methods getPixel/setPixel.

For use the library in your project, compiled it, and add reference to "FastedBitmap.dll" in you project.

Supported formats jpg and png (if you need other format, you can contact me)

Performance comparison

Comparison was made of image with a resolution small — 1024/768, big — 3840/2400.

Read

performance comparison read.png

Write

performance comparison write.png

Simple

#!c#

FastBitmap img = new FastBitmap("../../image/2.jpg");
for (int y = 0; y < img.Height; y++)
{
     for (int x = 0; x < img.Width; x++)
     {
         img.SetPixel(x, y, Color.Red);
     }
}

Описание

FastedBitmap это библиотека, предназначенная для быстрой работы с Bitmap в C#. Класс FastBitmap представляет собой обертку над Bitmap, предоставляющая более быстрые методы getPixel и setPixel.

Для использования библиотеки в своем проекте, скомпилируйте ее и добавьте ссылку на "FastedBitmap.dll" в своем проекте.

Поддерживаются форматы jpg и png(Если вам нужны другие форматы, вы можете связаться со мной)

Сравнение производительности

Сравнение производилось над изображениями с разрешением: маленькое изображение — 1024/768, большое — 3840/2400.

Чтение

performance comparison read.png

Запись

performance comparison write.png

Пример##

#!c#

FastBitmap img = new FastBitmap("../../image/2.jpg");
for (int y = 0; y < img.Height; y++)
{
     for (int x = 0; x < img.Width; x++)
     {
         img.SetPixel(x, y, Color.Red);
     }
}

About

FastedBitmap this is library for fast work with Bitmap in C#. Class FastBitmap this is a wrapper for Bitmap, than gives fast methods getPixel/setPixel.


Languages

Language:C# 100.0%