Hallo,
ich möchte eine Bilddatei aus einer Matrix erstellen, bzw. aus 3.
Ich habe die Werte für rot, grün und blau jeweils einzeln abgespeichert und möchte daraus jetzt das Bild erstellen.
Kann mir dabei jemand helfen *hoff*
Ich finde dazu leider nichts passendes.
eingelesen hab ich so:
Bitmap img=(L"neu.bmp");
int x=img.GetWidth();
int y=img.GetHeight();
for (i=0;i<=x;i++)
{
for (j=0;j<=y;j++)
{
img.GetPixel(i,j, &gdiColor);
COLORREF color = gdiColor.ToCOLORREF();
r = GetRValue(color);
g = GetGValue(color);
b = GetBValue(color);
}
}
ich hoffe es gibt auch so etwas einfaches bei der ausgabe.
ich möchte eine Bilddatei aus einer Matrix erstellen, bzw. aus 3.
Ich habe die Werte für rot, grün und blau jeweils einzeln abgespeichert und möchte daraus jetzt das Bild erstellen.
Kann mir dabei jemand helfen *hoff*
Ich finde dazu leider nichts passendes.
eingelesen hab ich so:
Bitmap img=(L"neu.bmp");
int x=img.GetWidth();
int y=img.GetHeight();
for (i=0;i<=x;i++)
{
for (j=0;j<=y;j++)
{
img.GetPixel(i,j, &gdiColor);
COLORREF color = gdiColor.ToCOLORREF();
r = GetRValue(color);
g = GetGValue(color);
b = GetBValue(color);
}
}
ich hoffe es gibt auch so etwas einfaches bei der ausgabe.