Lines Matching refs:height

358 				uint32 height = temp.Bounds().IntegerHeight() + 1;
360 result = ConvertToCMAP8((uint8*)temp.Bits(), width, height,
485 uint32 height = temp->Bounds().IntegerHeight() + 1;
487 result = ConvertToCMAP8(src, width, height, srcBPR, icon);
703 uint32 height = source->Bounds().IntegerHeight() + 1;
705 return ConvertFromCMAP8(src, width, height, srcBPR, destination);
728 uint32 height = source->Bounds().IntegerHeight() + 1;
730 return ConvertToCMAP8(src, width, height, srcBPR, destination);
735 BIconUtils::ConvertFromCMAP8(const uint8* src, uint32 width, uint32 height,
757 if (dstWidth < width || dstHeight < height
758 || (dstWidth == 2 * width && dstHeight == 2 * height)
759 || (dstWidth == 3 * width && dstHeight == 3 * height)
760 || (dstWidth == 4 * width && dstHeight == 4 * height)) {
761 BRect rect = BRect(0, 0, width - 1, height - 1);
767 converted->ImportBits(src, height * srcBPR, srcBPR, 0, B_CMAP8);
771 if (dstWidth < width || dstHeight < height)
772 scale_down(convertedBits, dst, width, height, dstWidth, dstHeight);
773 else if (dstWidth == 2 * width && dstHeight == 2 * height)
774 scale2x(convertedBits, dst, width, height, convertedBPR, dstBPR);
775 else if (dstWidth == 3 * width && dstHeight == 3 * height)
776 scale3x(convertedBits, dst, width, height, convertedBPR, dstBPR);
777 else if (dstWidth == 4 * width && dstHeight == 4 * height)
778 scale4x(convertedBits, dst, width, height, convertedBPR, dstBPR);
792 for (uint32 y = 0; y < height; y++) {
806 if (width == dstWidth && height == dstHeight)
813 if (dstWidth > width && dstHeight > height
814 && dstWidth < 2 * width && dstHeight < 2 * height) {
816 BRect rect = BRect(0, 0, width * 2 - 1, height * 2 - 1);
824 scale2x(dst, tempBits, width, height, dstBPR, tempBPR);
825 scale_down(tempBits, dst, width * 2, height * 2, dstWidth, dstHeight);
827 } else if (dstWidth > 2 * width && dstHeight > 2 * height
828 && dstWidth < 3 * width && dstHeight < 3 * height) {
830 BRect rect = BRect(0, 0, width * 3 - 1, height * 3 - 1);
838 scale3x(dst, tempBits, width, height, dstBPR, tempBPR);
839 scale_down(tempBits, dst, width * 3, height * 3, dstWidth, dstHeight);
841 } else if (dstWidth > 3 * width && dstHeight > 3 * height
842 && dstWidth < 4 * width && dstHeight < 4 * height) {
844 BRect rect = BRect(0, 0, width * 4 - 1, height * 4 - 1);
852 scale4x(dst, tempBits, width, height, dstBPR, tempBPR);
853 scale_down(tempBits, dst, width * 3, height * 3, dstWidth, dstHeight);
855 } else if (dstWidth > 4 * width && dstHeight > 4 * height) {
857 BRect rect = BRect(0, 0, width * 4 - 1, height * 4 - 1);
865 scale4x(dst, tempBits, width, height, dstBPR, tempBPR);
866 icon->ImportBits(tempBits, height * tempBPR, tempBPR, 0,
868 scale_bilinear(dst, width, height, dstWidth, dstHeight, dstBPR);
872 scale_bilinear(dst, width, height, dstWidth, dstHeight, dstBPR);
880 BIconUtils::ConvertToCMAP8(const uint8* src, uint32 width, uint32 height,
896 if (dstWidth < width || dstHeight < height) {
899 } else if (dstWidth > width || dstHeight > height) {
906 // return icon->ImportBits(src, height * srcBPR, srcBPR, 0, B_RGBA32);
917 for (uint32 y = 0; y < height; y++) {