JOBnik's Forum
News: BASS_FX 2.4.5 released (18/12/2009) - BiQuad filters added
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
September 07, 2010, 12:48:37 AM


Login with username, password and session length


Pages: [1]
  Print  
Author Topic: I want to use more than 256colors to draw spectrum.  (Read 2817 times)
0 Members and 1 Guest are viewing this topic.
linkknil
Guest
« on: May 30, 2007, 03:49:38 PM »

Sorry. my english is really bad... Cry
 
For X = 0 To bands - 1
     Y = newy(X)
     If Y > specheight Then Y = specheight
     If Y < 0 Then Y = 0
           While (Y >= 1)
               Call FillMemory(specbuf((Y - 1) * SPECWIDTH + X * 12), 10, (Y - 1) / specheight * bhnum)
               Y = Y - 1
           Wend
 Next
Call SetDIBitsToDevice(frmDis.hdc, 0, 0, SPECWIDTH, specheight, 0, 0, 0, specheight, specbuf(0), bh, 0)

Cause of 'specbuf' can't be large than 255 . So I can't use more than 256 colors.
Is there anyway ro resolve this ?

p.s Thank you for your coding of spectrum code  Wink

Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC

© (: JOBnik! :) @ http://www.jobnik.org
Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM
Page created in 0.087 seconds with 18 queries.