Need Dll Compatable With Rgss(Preferablly written in c)

For a idea how to use dlls in rgss(if you only know ruby, the dll was in c here)

Brighten = [url removed, login to view]("uabm.dll", "Brighten", "li", "v")

def brighten(amount)

[url removed, login to view](self.__id__, amount)


and here is the c source:

extern "C" _declspec (dllexport) BOOL Brighten(long object)


RGSSBMINFO *bitmap = ((RGSSBITMAP*) (object<<1)) -> bm -> bminfo;

DWORD rowsize;

DWORD width, height;


long x, y;

int red, green, blue;

if(!bitmap) return false;

width = bitmap -> infoheader -> biWidth;

height = bitmap -> infoheader -> biHeight;

rowsize = width * 4;

row = (LPBYTE) (bitmap -> firstRow);

for ( y = 0; y < (int) height; y++) {

LPBYTE thisrow = row;

for ( x = 0; x < (int) width; x++) {

red = (thisrow[2] + object);

green = (thisrow[1] + object);

blue = (thisrow[0] + object);

thisrow[2] = (BYTE) red;

thisrow[1] = (BYTE) green;

thisrow[0] = (BYTE) blue;

thisrow += 4;


row -= rowsize;


return true;


If you need anything else info wise let me know.

Compétences : Ruby on Rails

en voir plus : rgssbminfo, rgssbitmap, dll use rgss, ruby win32api object rgss, rgssbitmap rgssbminfo, call dll rgss, rgss dll, rgss win32api bitmap, rgss bitmap dllexport, true green, return ruby on rails, int v, rgss bitmap dll, use dlls rgss, ruby use dll, dll, c++ dll, c# dll, c dll, byte, bool, bm, call ruby, byte bitmap, extern

Concernant l'employeur :
( 0 commentaires ) ogden, United States

Nº du projet : #1074347