All Projects → marc-q → Libbmp

marc-q / Libbmp

Licence: gpl-3.0
A simple Bitmap (BMP) library.

Programming Languages

c
50402 projects - #5 most used programming language
cpp
1120 projects

Projects that are alternatives of or similar to Libbmp

Instacapture
Android library to capture screenshot from your app
Stars: ✭ 681 (+2170%)
Mutual labels:  library, bitmap
D2dlib
A .NET library for hardware-accelerated, high performance, immediate mode rendering via Direct2D.
Stars: ✭ 84 (+180%)
Mutual labels:  library, bitmap
Chatify
A Laravel package that allows you to add a complete user messaging system into your new/existing Laravel application.
Stars: ✭ 885 (+2850%)
Mutual labels:  library
Fb2index
Minimalistic web library. This repository has migrated to https://gitlab.com/opennota/fb2index
Stars: ✭ 29 (-3.33%)
Mutual labels:  library
Text Minimap
Generate text minimap/preview using Braille Patterns
Stars: ✭ 21 (-30%)
Mutual labels:  library
Ambient
Lightweight ambient light javascript library for HTML image and video elements
Stars: ✭ 20 (-33.33%)
Mutual labels:  library
Ulib
C++ application development framework, to help developers create and deploy applications quickly and simply
Stars: ✭ 912 (+2940%)
Mutual labels:  library
Eglo
EGL/X11 Abstraction Library for Pocket C.H.I.P
Stars: ✭ 15 (-50%)
Mutual labels:  library
Openps3ftp
An open source FTP server for the PlayStation 3.
Stars: ✭ 29 (-3.33%)
Mutual labels:  library
Python Common Cache
This project is a cache component based on the memory and it is lightweight, simple and customizable. 🐍 😃
Stars: ✭ 21 (-30%)
Mutual labels:  library
Anglesharp.css
👼 Library to enable support for cascading stylesheets in AngleSharp.
Stars: ✭ 27 (-10%)
Mutual labels:  library
Meowbottomnavigation
Android Meow Bottm Navigation
Stars: ✭ 912 (+2940%)
Mutual labels:  library
Belogging
Easy and opinionated logging configuration for Python apps
Stars: ✭ 20 (-33.33%)
Mutual labels:  library
Php Confusable Homoglyphs
A PHP port of https://github.com/vhf/confusable_homoglyphs
Stars: ✭ 27 (-10%)
Mutual labels:  library
Humblelogging
HumbleLogging is a lightweight C++ logging framework. It aims to be extendible, easy to understand and as fast as possible.
Stars: ✭ 15 (-50%)
Mutual labels:  library
Androidstreamable
Unofficial https://streamable.com API Wrapper for Android
Stars: ✭ 29 (-3.33%)
Mutual labels:  library
Serf
Mirror of Apache Serf
Stars: ✭ 15 (-50%)
Mutual labels:  library
Rust Csv
A CSV parser for Rust, with Serde support.
Stars: ✭ 911 (+2936.67%)
Mutual labels:  library
Go Deb Version
A golang library for parsing deb package versions
Stars: ✭ 21 (-30%)
Mutual labels:  library
Cardviewlist
An elegant and responsive CardView like Android on iOS with Swift. Available horizontal and vertical scrolling with full animations and customizable.
Stars: ✭ 30 (+0%)
Mutual labels:  library

libbmp

A simple Bitmap (BMP) library written in C without dependencies.
For a native C++ version look inside the CPP folder.

Example: Checkerboard-pattern

#include <stdio.h>
#include "libbmp.h"

int
main ()
{
	bmp_img img;
	bmp_img_init_df (&img, 512, 512);
	
	// Draw a checkerboard pattern:
	for (size_t y = 0, x; y < 512; y++)
	{
		for (x = 0; x < 512; x++)
		{
			if ((y % 128 < 64 && x % 128 < 64) ||
			    (y % 128 >= 64 && x % 128 >= 64))
			{
				bmp_pixel_init (&img.img_pixels[y][x], 250, 250, 250);
			}
			else
			{
				bmp_pixel_init (&img.img_pixels[y][x], 0, 0, 0);
			}
		}
	}
	
	bmp_img_write (&img, "test.bmp");
	bmp_img_free (&img);
	return 0;
}

Important Notes

  • Since the C and C++ version have many things in common, both of them are maintained in a single repository.
    To report language specific things, make use of the C or C++ label.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].