Skip to content

loading images with alpha using ofxOpenCv addon in openframeworks

Notifications You must be signed in to change notification settings

sebasobotka/ofxCvColorImageAlpha

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

ofxCvColorImageAlpha

port of ofxCvColorImageAlpha to openFrameworks 0.9.3

https://forum.openframeworks.cc/t/opencv-ofxcvimage-how-to-load-an-external-file/2119

not all features have been tested

Installation

copy files to addons/ofxOpenCv/src folder

add this line to ofxOpenCv.h file

#include "ofxCvColorImageAlpha.h"

Usage

ofApp.h

ofxCvColorImageAlpha	alphaColorImg;
ofImage img;

ofApp.cpp

setup()
	img.load("fileName.png");
	alphaColorImg.allocate(img.getWidth(), img.getHeight());
	alphaColorImg.setFromPixels(img.getPixels());
	
draw()
	alphaColorImg.draw(0, 0);

About

loading images with alpha using ofxOpenCv addon in openframeworks

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 100.0%