![]() |
![]() |
|
![]() |
![]() |
|
Programmierung Rat & Tat für Programmierer |
![]() |
|
Themen-Optionen | Ansicht |
![]() |
#1 |
Master
![]() |
![]() Moin moin,
ich möchte mit einem C++ Programm die Farbe eines bestimmten Pixels in einem Bild auslesen. Genaugenommen suche ich ein Äquivalent zu "imagecolorat( resource image, int x, int y)" in PHP. Gibt es sowas in ganz einfach? Gruß Thies
____________________________________
The knack of flying is learning how to throw yourself at the ground and miss. Es heißt Fluglotse, ein z kommt in diesem Wort nicht vor. |
![]() |
![]() |
![]() |
#2 |
Senior Member
![]() Registriert seit: 02.11.2002
Beiträge: 179
|
![]() php kann das imho doch nur, wenn du enstprechende grafik-bibliotheken installiert hast (imagemagik, ...). und davon gibt es glaub ich auch einige für c++. ist wahrscheinlich das einfachste.
____________________________________
It\'s not a bug... It\'s a feature! You know, the main advantage of encrypted paella over ordinary paella is that nobody but you knows what you are eating... (Alvaro) |
![]() |
![]() |
![]() |
#3 |
Master
![]() |
![]() ja, aber hast du ne Ahnung welche Bib ich da nehmen kann und wie es funktioniert? Hab ein paar gefunden, aber irgendwie funktionierte das nur eher begrenzt....
Schönen Sonntag noch Thies
____________________________________
The knack of flying is learning how to throw yourself at the ground and miss. Es heißt Fluglotse, ein z kommt in diesem Wort nicht vor. |
![]() |
![]() |
![]() |
#4 |
Schwarzfußfrettchen
![]() Registriert seit: 28.01.2001
Beiträge: 2.071
|
![]() api call?
getpixel?
____________________________________
Wann die kan Almdudler ham... \"Es gibt nur einen Weg zur Lunge, und der muss geteert werden, damit der Krebs nicht stolpert!\" http://www.dream.at/gizmo/bunny.gif Image is © 2001 Merle Sterndalsäg.. ähh... jäger ![]() |
![]() |
![]() |
![]() |
#5 |
Senior Member
![]() Registriert seit: 02.11.2002
Beiträge: 179
|
![]() google,
http://www.google.at/search?q=c%2B%2...ge+pixel+color 4. match: http://www.codeguru.com/Cpp/G-M/bitm...cle.php/c1719/ was du suchst ist wohl Color = m_Bits[y*m_Size.cx+x]; oder, noch einfacher (nach sesa_mina): http://www.google.at/search?q=windows+api+getpixel google ist echt ganz super... aber foren offensichtlich auch ;-)
____________________________________
It\'s not a bug... It\'s a feature! You know, the main advantage of encrypted paella over ordinary paella is that nobody but you knows what you are eating... (Alvaro) |
![]() |
![]() |
![]() |
#6 |
Master
![]() |
![]() Dankeschön, werd mir oben genanntes mal angucken
![]() Der Tipp mit Google ist nicht schlecht, werde ich mir merken... ![]() Also danke für die Hilfe Thies
____________________________________
The knack of flying is learning how to throw yourself at the ground and miss. Es heißt Fluglotse, ein z kommt in diesem Wort nicht vor. |
![]() |
![]() |
![]() |
Aktive Benutzer in diesem Thema: 1 (Registrierte Benutzer: 0, Gäste: 1) | |
|
|