Lines Matching refs:height
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);
461 int32 height = bitmap->Bounds().IntegerHeight();
478 for (int y = 0; y <= height; y++) {
479 r = 255 - y * 255 / height;
486 _DrawColorLineX(bits, height, bpr, r, g, b);
496 for (int y = 0; y <= height; y++) {
497 g = 255 - y * 255 / height;
504 _DrawColorLineX(bits, height, bpr, r, g, b);
514 for (int y = 0; y <= height; y++) {
515 b = 255 - y * 255 / height;
522 _DrawColorLineX(bits, height, bpr, r, g, b);
531 for (int y = 0; y <= height; y++) {
532 HSV_to_RGB(6.0 - (float)y * 6.0 / height, s, v, r, g, b);
539 _DrawColorLineX(bits, height, bpr,
550 for (int y = 0; y <= height; y++) {
551 HSV_to_RGB(h, 1.0 - (float)y / height, v, r, g, b);
558 _DrawColorLineX(bits, height, bpr,
569 for (int y = 0; y <= height; y++) {
570 HSV_to_RGB(h, s, 1.0 - (float)y / height, r, g, b);
577 _DrawColorLineX(bits, height, bpr,
601 ColorSlider::_DrawColorLineX(uint8* bits, int height, int bpr,
604 for (int y = 0; y <= height; y++) {