Depends on what you are using. The following things have to be taken into account: * Do you use only GDI mode or also GFX? (they both use different rendering paths) * Do you use hardware accelerated drawing (/gdi:hw) or software?
For software drawint the best starting point is gdi_UpdateSurfaces best armin Am 22.03.2016 um 16:38 schrieb c0f...@mail.ru: > > Hi all > I write my own rdp client, based on freerdp library. Need to make screenshot > remote machine after login. > > I use Sample solution which comes with freerdp. > > static BOOL tf_begin_paint(rdpContext* context) > { > rdpGdi* gdi = context->gdi; > gdi->primary->hdc->hwnd->invalid->null = 1; > return TRUE; > } > static BOOL tf_end_paint(rdpContext* context) > { > rdpGdi* gdi = context->gdi; > return TRUE; > } > BOOL tf_post_connect(freerdp* instance) > { > if (!gdi_init(instance, CLRCONV_ALPHA | CLRCONV_INVERT | CLRBUF_16BPP | > CLRBUF_32BPP, NULL)) > return FALSE; > instance->update->BeginPaint = tf_begin_paint; > instance->update->EndPaint = tf_end_paint; > return (freerdp_channels_post_connect(instance->context->channels, > instance) == CHANNEL_RC_OK); > } > > How can I get a bitmap? I suppose is necessary to save gdi->primary_buffer in > tf_end_paint, but this doesn't work. > ---------------------------------------------------------------------- > ------------------------------------------------------------------------------ > Transform Data into Opportunity. > Accelerate data analysis in your applications with > Intel Data Analytics Acceleration Library. > Click to learn more. > http://pubads.g.doubleclick.net/gampad/clk?id=278785351&iu=/4140 > _______________________________________________ > FreeRDP-devel mailing list > FreeRDP-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/freerdp-devel > ------------------------------------------------------------------------------ Transform Data into Opportunity. Accelerate data analysis in your applications with Intel Data Analytics Acceleration Library. Click to learn more. http://pubads.g.doubleclick.net/gampad/clk?id=278785351&iu=/4140 _______________________________________________ FreeRDP-devel mailing list FreeRDP-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freerdp-devel