You should use Lock() Unlock() functions and draw direct in memory.

See API manual
e.g
http://directfb.org/docs/DirectFB_Reference_1_1/IDirectFBSurface_Lock.html

2007/9/15, shi hao <[EMAIL PROTECTED]>:
>
> thanks
>
> But it not I want.
> I want drow a chinese char,I have get follow code.I
> want to knows how to write by directfb/DFB++?
>
> Thanks
>
> [========================================
> #include <libfbx/libfbx.h>
> #include <libfbx/libfbx-gui.h>
> #include <stdlib.h>
> #include <unistd.h>
> #include <stdio.h>
> #define row 2
> #define col 3
> int main()
> {
> int x,y,i;
> char *s="中文汉子显示";
> FILE *fp;
> char buffer[32];
> unsigned char qh,wh;
> unsigned long offset;
>
> fb_init();
> fb_handle_signals();
> x=fb_screen->width-300;
> y=fb_screen->height-300;
>
> int n,j,k,m;
>
> if((fp=fopen("St.cfg","rb"))==NULL)/
> {
> fb_cleanup();
> return 0;
> }
>
> while(*s)
> {
> qh=*(s)-0xa0;
> wh=*(s+1)-0xa0;
> offset=(94*(qh-1)+(wh-1))*32L;
> fseek(fp,offset,SEEK_SET);
> fread(buffer,32,1,fp); buffer中(一个汉字)
> for(i=0;i<16;i++)
> for(n=0;n<row;n++)
> for( j=0;j<2;j++)
> for( k=0;k<8;k++)
> for(m=0;m<row;m++)
>
> if(((buffer[i*2+j]>>(7-k))&0x1)!=NULL)
> fb_putpixel(x+8*j*col+k*col+m,y+i*row+n,0,255,0,fb_screen);
>
> s+=2;
> x+=40;
> }
> return 1;
> }
>
> ================================]
>
> --- Nikita Egorov <[EMAIL PROTECTED]> wrote:
>
> > See the thread
> >
> http://mail.directfb.org/pipermail/directfb-dev/2007-August/003321.html
> >
> > 2007/9/14, shi hao <[EMAIL PROTECTED]>:
> > >
> > > I want drow a dot,but I can not found any function
> > to
> > > using,who can tell me ?
> > > thanks
> > >
> > >
> > >
> > >
> > >
> >
>
> ____________________________________________________________________________________
> > > Pinpoint customers who are looking for what you
> > sell.
> > > http://searchmarketing.yahoo.com/
> > >
> > >
> > > _______________________________________________
> > > directfb-dev mailing list
> > > [email protected]
> > >
> >
> http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev
> > >
> >
> >
> >
> > --
> > Best Regards
> > Nikita Egorov
> > [EMAIL PROTECTED]
> > [EMAIL PROTECTED]
> >
>
>
>
>
>       
> ____________________________________________________________________________________
> Don't let your dream ride pass you by. Make it a reality with Yahoo!
> Autos.
> http://autos.yahoo.com/index.html
>
>
>
>
>
> _______________________________________________
> directfb-dev mailing list
> [email protected]
> http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev
>



-- 
Best Regards
Nikita Egorov
[EMAIL PROTECTED]
[EMAIL PROTECTED]
_______________________________________________
directfb-dev mailing list
[email protected]
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev

Reply via email to