Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C++ > Apply 8bit pixmap to a 16bit buffer

Reply
Thread Tools

Apply 8bit pixmap to a 16bit buffer

 
 
Daniele M.
Guest
Posts: n/a
 
      03-06-2008
Hi!

I hope someone could help me

I'm playing with cool FreeType library;

I have an 8bit pixmap (i suppose it should holds the values i have
combine with OR with my screen backbuffer in order to calculate
correctly the pixel color).

My problem is: my display backbuffer is 16bit (565), so when i apply
my pixmap with something like this:

pixel[x][y]=pixel[x][y] | pixmap[a,b]

it doesn't work very well (actually the pixel isn't changed as it
should )

I think the main problem is: pixel is a 16bit value, pixmap instead is
an 8bit value...
I think i should do a sort of conversion for pixmap...but i can't
figure how...

Please helppp!

Thanks in advance for your time.

Regards.
 
Reply With Quote
 
 
 
 
Sam
Guest
Posts: n/a
 
      03-06-2008
Daniele M. writes:

> I think the main problem is: pixel is a 16bit value, pixmap instead is
> an 8bit value...
> I think i should do a sort of conversion for pixmap...but i can't
> figure how...
>
> Please helppp!


This has nothing to do with C++, the language, but rather some specific
library. You should try looking for a newsgroup or a mailing list that
discusses that specific graphics library, rather than a newsgroup for
language-related question.


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)

iD4DBQBHzztMx9p3GYHlUOIRApXiAJjR2g3FV0y6HZEyzUbRTG LuVR1oAJ4ijZQI
TzttYnWAxlMdop4Jod4p4A==
=g1gN
-----END PGP SIGNATURE-----

 
Reply With Quote
 
 
 
 
Daniele M.
Guest
Posts: n/a
 
      03-06-2008
On 6 Mar, 01:31, Sam <s...@email-scan.com> wrote:
> Daniele M. writes:
> > I think the main problem is: pixel is a 16bit value, pixmap instead is
> > an 8bit value...
> > I think i should do a sort of conversion for pixmap...but i can't
> > figure how...

>
> > Please helppp!

>
> This has nothing to do with C++, the language, but rather some specific
> library. You should try looking for a newsgroup or a mailing list that
> discusses that specific graphics library, rather than a newsgroup for
> language-related question.
>
> application_pgp-signature_part
> 1KScarica


Mmmmh...i supposed a 8bit to 16bit conversion could be related to c++,
graphic library or not
Btw..i will search for it!
Thanks.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
store 16bit values in 8bit eeprom cerr C Programming 2 02-18-2011 01:42 AM
16bit values into 8bit eeprom cerr C Programming 1 02-17-2011 11:50 PM
8bit * 8bit pipelined multiplier humble VHDL 0 10-28-2006 06:16 PM
16bit vs 8bit for prints Terry Digital Photography 15 02-18-2006 06:40 AM
8bit vs. 16bit color Terry Digital Photography 6 10-26-2004 04:42 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57