Archive for January, 2007

Transparentes 1×1-Pixel-GIF ausgeben

January 11th, 2007

Response.Clear();
Response.ContentType = “image/png�;
Response.BinaryWrite(new byte[] {0×47, 0×49, 0×46, 0×38, 0×39, 0×61, 0×01, 0×00, 0×01, 0×00, 0×80, 0×00, 0×00, 0xFF, 0xFF, 0xFF, 0×00, 0×00, 0×00, 0×21, 0xF9, 0×04, 0×01, 0×00, 0×00, 0×00, 0×00, 0×2C, 0×00, 0×00, 0×00, 0×00, 0×01, 0×00, 0×01, 0×00, 0×00, 0×02, 0×02, 0×44, 0×01, 0×00, 0×3B});
Response.End();

Transparentes 1×1-Pixel-PNG ausgeben

January 11th, 2007

Response.Clear();
Response.ContentType = “image/png”;
Response.BinaryWrite(new byte[] { 0×89, 0×50, 0×4E, 0×47, 0×0D, 0×0A, 0×1A, 0×0A, 0×00, 0×00, 0×00, 0×0D, 0×49, 0×48, 0×44, 0×52, 0×00, 0×00, 0×00, 0×01, 0×00, 0×00, 0×00, 0×01, 0×08, 0×06, 0×00, 0×00, 0×00, 0×1F, 0×15, 0xC4, 0×89, 0×00, 0×00, 0×00, 0×04, 0×67, 0×41, 0×4d, 0×41, 0×00, 0×00, 0xb1, 0×8e, 0×7c, 0xfb, 0×51, 0×93, 0×00, [...]

PNG-Transparenz in IE6

January 5th, 2007

Endlich ein einfacher Weg, das hinzubekommen:
http://blog.bjorkoy.com/2006/12/12/flawless-and-fast-png-support-in-ie6/