[haiku-commits] Re: r34140 - haiku/trunk/src/apps/screenshot

  • From: Ryan Leavengood <leavengood@xxxxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Fri, 20 Nov 2009 12:59:09 -0500

On Fri, Nov 20, 2009 at 6:22 AM, Axel Dörfler <axeld@xxxxxxxxxxxxxxxx> wrote:
>
> That would be the cleaner solution. AFAICT there is no need for a
> BWindow to take a screenshot.

No just a BApplication so you have an app_server link and can use BScreen.

On the topic of translators, I too found the API a bit tricky and this
is why I never got around to using translators for some of the
original screenshot code. Maybe this is just the nature of such a
flexible system but in my mind maybe the API could be made a bit
easier for the simple case. I think BTranslationUtils cover nicely the
case of opening images, but creating isn't as easy.

-- 
Regards,
Ryan

Other related posts: