Ich versuche grad ein kleines Bildbeatbeitungs-Programm zu schreiben und habe ein paar Fragen:
1. gibt es eine schnellere alternative zu draw_getpixel? ich hab das hier gefunden aber ich glaub damit gehts nicht. villeicht kann ich auch nur zu schlecht englisch. hier mal die help davon:
Spoiler anzeigen
2. Gibt es eine Möglichkeit, eine surface gestreck und nur ein teil davon zu zeichnen(für den zoom). Ich hab keine gefunden
3. Wenn man das zeichen-ziel auf die surface setzt, werden die Koordinaten auf der surface verwentet(0,0 ist dann die linke obere Ecke der surface) aber mouse_x gibt immernoch die mausposition im bezug auf den room wieder, oder?
Mfg Alron
1. gibt es eine schnellere alternative zu draw_getpixel? ich hab das hier gefunden aber ich glaub damit gehts nicht. villeicht kann ich auch nur zu schlecht englisch. hier mal die help davon:
The ColorScan function help:
Real CS_Init ();
Make the DLL ready for use.
Real CS_Scan (Real Color, Real X, Real Y, Real Width, Real Height);
This function scans the screen for a certain color.
When the value of Width or Height is 0, that parameter uses the whole screen dimension.
Real CS_GetColors ();
This function returns the number of pixels having the specified color.
Real CS_GetColorX (Real Pixel Number);
This function returns the X of the found pixel.
The number of the first found pixel is 1.
Real CS_GetColorY (Real Pixel Number);
This function returns the Y of the found pixel.
The number of the first found pixel is 1.
Real CS_Init ();
Make the DLL ready for use.
Real CS_Scan (Real Color, Real X, Real Y, Real Width, Real Height);
This function scans the screen for a certain color.
When the value of Width or Height is 0, that parameter uses the whole screen dimension.
Real CS_GetColors ();
This function returns the number of pixels having the specified color.
Real CS_GetColorX (Real Pixel Number);
This function returns the X of the found pixel.
The number of the first found pixel is 1.
Real CS_GetColorY (Real Pixel Number);
This function returns the Y of the found pixel.
The number of the first found pixel is 1.
2. Gibt es eine Möglichkeit, eine surface gestreck und nur ein teil davon zu zeichnen(für den zoom). Ich hab keine gefunden
3. Wenn man das zeichen-ziel auf die surface setzt, werden die Koordinaten auf der surface verwentet(0,0 ist dann die linke obere Ecke der surface) aber mouse_x gibt immernoch die mausposition im bezug auf den room wieder, oder?

Mfg Alron