×

Discussion Board

Results 1 to 7 of 7
  1. #1
    Registered User
    Join Date
    Jun 2003
    Posts
    3

    Screen capturing again

    Hi,

    I'd like to take a screen capture from my device screen.
    I'm currently doing something like this:
    CCoeEnv::Static()->ScreenDevice()->CopyScreenToBitmap(screenBitmap);

    The problem with this is, that the resulting bitmap excludes possible pointer and / or cursor.

    Any idea howto get cursors and pointers as well to the screen shot?

  2. #2
    Super Contributor
    Join Date
    Apr 2003
    Location
    Czech Republic
    Posts
    915
    Well, you can use somethig like this, but I don't know if the pointer will be included. Possibly not:
    Code:
    TSize	screenSize = CEikonEnv::Static()->ScreenDevice()->SizeInPixels();
    TDisplayMode displayMode = CEikonEnv::Static()->ScreenDevice()->DisplayMode();
    iBitmap = new(ELeave)CFbsBitmap;
    User::LeaveIfError(iBitmap->Create(screenSize, displayMode));
    CEikonEnv::Static()->ScreenDevice()->CopyScreenToBitmap(iBitmap);

  3. #3
    Super Contributor
    Join Date
    Apr 2003
    Location
    Czech Republic
    Posts
    915
    btw, there is an example on Sendo's website (together with source code), but as Sendo X is Series60 device and therefore it doesn't have any pointer, I doubt it deals with the issue...

  4. #4
    Super Contributor
    Join Date
    Apr 2003
    Location
    Czech Republic
    Posts
    915
    And one last thing I forgot. There is SCap application http://www.yipton.demon.co.uk/content.html which runs on UIQ, so maybe it will help you, but I don't write for UIQ phones so I have no idea, how it works...

  5. #5
    Registered User
    Join Date
    Jun 2003
    Posts
    3
    What, I tried to say in my original question was, that this method you succested is not working. I'am already familiar with the SCap application, but it also uses CopyScreenToBitmap method to get the screen data, whis does not give all the data visible on the screen.

    Thanks any way for your effort.

  6. #6
    Registered User
    Join Date
    Dec 2004
    Posts
    14
    i m very new in this topic.. tel me r we talking about screen of cell phones?
    if yes can u pls let me know where i can find documentation of the APIs supporting this.
    i want to develop handset emulator.
    thx in advance
    vraj

  7. #7
    Registered User
    Join Date
    Jun 2003
    Posts
    3
    Yes we are talking about the screen of the mobile phone.

    You can find the API's by downloading the SDK from this site (forum.nokia.com).

    Try section titled: "Developer Plarforms".

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×