Results 1 to 2 of 2

Thread: vgDrawImage is not working please help!

  1. #1
    Junior Member
    Join Date
    Aug 2008
    Posts
    1

    vgDrawImage is not working please help!

    hi i am using alexvg implementation of openvg with destination surface being rgb565, i need to draw a 565 image on this surface so i wrote following code, but its not drawing anything can somebody please help

    im = vgCreateImage(VG_sRGB_565 , b_rev->rectW, b_rev->rectH, VG_IMAGE_QUALITY_BETTER);
    vgImageSubData(im, b_rev->pBits, 2*b_rev->rectW, VG_sRGB_565,0, 0,b_rev->rectW, b_rev->rectH);
    vgSeti ( VG_IMAGE_QUALITY, VG_IMAGE_QUALITY_FASTER );
    vgSeti(VG_MATRIX_MODE, VG_MATRIX_IMAGE_USER_TO_SURFACE);
    vgLoadIdentity();
    vgSeti(VG_IMAGE_MODE,VG_DRAW_IMAGE_MULTIPLY);
    vgDrawImage(im);

    but nothings coming up so i am drawing images through drawing paint patterns and it works, please help me with vgDrawImage(), b_rev is the bitmap to be drawn.

  2. #2
    Junior Member
    Join Date
    Jul 2006
    Location
    Rimini, Italy
    Posts
    18

    Re: vgDrawImage is not working please help!

    Code :
    vgSeti(VG_IMAGE_MODE,VG_DRAW_IMAGE_MULTIPLY);
    ...and where is your paint? maybe your image is multiplied by zero?
    Michele Fabbri - Mazatech Srl

Similar Threads

  1. vgDrawImage leaving a rect around image?
    By eminemence in forum OpenVG and VGU
    Replies: 3
    Last Post: 04-03-2012, 02:26 PM
  2. Replies: 1
    Last Post: 11-18-2011, 08:13 AM

Posting Permissions

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