luty 27, 2007 | 01:21
Recently, I’ve been using ZedGraph under Gtk# to draw simple plots, but I’ve found a problem with displaing it under Gtk# forms, not the Windows.Forms. The (not) easiest thing, is to convert the plot to the bitmap image.
I’ve spent a lot of time searching for solution how to convert it to Pixbuf, the one is here:
C#:
-
private static Gdk.Pixbuf ImageToPixbuf(Image image)
-
{
-
using (MemoryStream stream =
new MemoryStream
())
-
{
-
image.Save(stream, ImageFormat.Bmp);
-
stream.Position = 0;
-
Gdk.
Pixbuf pixbuf =
new Gdk.
Pixbuf(stream
);
-
return pixbuf;
-
}
-
}
Posted w
dev |
Brak komentarzy »
luty 7, 2007 | 23:41
Milion razy dziękuję oraz ahhhahaa. Fajne.
Posted w
first coffee |
Komentarze (2) »
luty 5, 2007 | 17:38
I stało się, wrzuciłem na kde-look moją tapetkę dla PLD :-)
Wiem wiem, gradienty wyglądają słabo, ale inkskape chyba nie potrafi inaczej… a może to ograniczenie PNG? Dla chętnych, wersja wektorowa.
Posted w
linux |
Brak komentarzy »
luty 2, 2007 | 20:36
With help of my friend, yoB, I’ve got working ASUS F2J webcam (Syntek STK-1135 probably).

Czytaj resztę wpisu »
Posted w
linux |
Komentarze (13) »
luty 1, 2007 | 20:44
Ostatnio dużo się dzieje… Czytaj resztę wpisu »
Posted w
first coffee |
Brak komentarzy »