예제 #1
0
void plot_pixel(int x,int y,double r,double g,double b)
{
	while(r >= 256.0)
	{
		r -= 256.0;
	}
	while(g >= 256.0)
	{
		g -= 256.0;
	}
	while(b >= 256.0)
	{
		b -= 256.0;
	}
  plot_pixel_display(x,y,r,g,b);
  if(mode == MODE_JPEG)
      plot_pixel_jpeg(x,y,r,g,b);
}
예제 #2
0
void plot_pixel(int x,int y,unsigned char r,unsigned char g, unsigned char b)
{
  plot_pixel_display(x,y,r,g,b);
  if(mode == MODE_JPEG)
      plot_pixel_jpeg(x,y,r,g,b);
}