Lines Matching refs:width
223 ColorSlider::FrameResized(float width, float height)
424 ColorSlider::_AllocBitmap(int32 width, int32 height)
426 if (width < 2 || height < 2)
430 fBitmap = new BBitmap(BRect(0, 0, width - 1, height - 1), 0, B_RGB32);
460 int32 width = bitmap->Bounds().IntegerWidth();
480 _DrawColorLineY(bits, width, r, g, b);
484 for (int x = 0; x <= width; x++) {
485 r = x * 255 / width;
498 _DrawColorLineY(bits, width, r, g, b);
502 for (int x = 0; x <= width; x++) {
503 g = 255 - x * 255 / width;
516 _DrawColorLineY(bits, width, r, g, b);
520 for (int x = 0; x <= width; x++) {
521 b = x * 255 / width;
533 _DrawColorLineY(bits, width, r * 255, g * 255, b * 255);
537 for (int x = 0; x <= width; x++) {
538 HSV_to_RGB((float)x * 6.0 / width, s, v, r, g, b);
552 _DrawColorLineY(bits, width, r * 255, g * 255, b * 255);
556 for (int x = 0; x <= width; x++) {
557 HSV_to_RGB(h, 1.0 - (float)x / width, v, r, g, b);
571 _DrawColorLineY(bits, width, r * 255, g * 255, b * 255);
575 for (int x = 0; x <= width; x++) {
576 HSV_to_RGB(h, s, (float)x / width, r, g, b);
588 ColorSlider::_DrawColorLineY(uint8* bits, int width, int r, int g, int b)
590 for (int x = 0; x <= width; x++) {