OK. Thanks of help. I don't understand some BlittingFlags. How can I reilize this: I need to put b/w glyph(DSPF_A1) to surface(for eaxmple,RGB16), but color of puted glyph(color1) and all unsettend points in glyph (black point in b/w glyph)(color2) must be setted by me.
On 8/1/07, Claudio Ciccani <[EMAIL PROTECTED]> wrote: > Michael Metsger wrote: > > Hi developers? > > > > How to realize this: > > XSetFillStyle(g_display, g_gc, FillStippled); > > XSetStipple(g_display, g_gc, (Pixmap) glyph->pixmap);\ > > XSetTSOrigin(g_display, g_gc, x1, y1);\ > > XFillRectangle(g_display, g_backstore, g_wnd, g_gc, x1, y1, > > glyph->width, glyph->height); > > > > Alternative algoritm - need to put b/w glyph(DSPF_A1) to surface(for > > eaxmple,RGB16), but color of puted glyph must be seted by me. > > CreateSurface( format=DSPF_A1, &glyph_surface ) > // put glyphs on glyph_surface > destination->SetColor( destination, glyph_color ) > destination->SetBlittingFlags( destination, DSBLIT_BLEND_ALPHACHANNEL | > DSBLIT_COLORIZE ) > destination->Blit( destination, glyph_surface ) > > > > > Also for FillOpaqueStippled algjoritm i need to. How? Only lock > > surface and draw manualy? > > > > _______________________________________________ > > directfb-users mailing list > > [email protected] > > http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users > > > > > > > -- > Regards, > Claudio Ciccani > > [EMAIL PROTECTED] > http://directfb.org > http://sf.net/projects/php-directfb > _______________________________________________ directfb-users mailing list [email protected] http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users
