Lines Matching defs:width
180 ColorField::FrameResized(float width, float height)
232 float width = Width();
239 G = round(fMarkerPosition.x / width * 255.0);
244 R = round(fMarkerPosition.x / width * 255.0);
250 R = round(fMarkerPosition.x / width * 255.0);
257 S = fMarkerPosition.x / width;
262 H = fMarkerPosition.x / width * 6.0;
268 H = fMarkerPosition.x / width * 6.0;
312 float width = Width();
317 fMarkerPosition = BPoint(color.green / 255.0 * width,
322 fMarkerPosition = BPoint(color.red / 255.0 * width,
327 fMarkerPosition = BPoint(color.red / 255.0 * width,
333 fMarkerPosition = BPoint(s * width, height - v * height);
335 fMarkerPosition = BPoint(width - v * width, s * height);
339 fMarkerPosition = BPoint(h / 6.0 * width, height - v * height);
343 fMarkerPosition = BPoint( h / 6.0 * width, height - s * height);
410 ColorField::_AllocBitmap(int32 width, int32 height)
412 if (width < 2 || height < 2)
416 fBitmap = new BBitmap(BRect(0, 0, width - 1, height - 1), 0, B_RGB32);
444 int32 width = bitmap->Bounds().IntegerWidth();
464 for (int32 x = 0; x <= width; x++) {
465 g = x * 255 / width;
478 for (int x = 0; x <= width; x++) {
479 r = x * 255 / width;
492 for (int x = 0; x <= width; ++x) {
493 r = x * 255 / width;
507 for (int x = 0; x <= width; ++x) {
508 s = (float)x / width;
522 for (int x = 0; x <= width; ++x) {
523 v = (float)(width - x) / width;
541 for (int x = 0; x <= width; ++x) {
542 h = 6.0 / width * x;
559 for (int x = 0; x <= width; ++x) {
560 h = 6.0 / width * x;