Ti::TiValue Ti::TiBlob::getSize()
{
	Ti::TiValue returnedValue;

	ensureImageLoaded();
	if (_imageData.isValid())
	{
		returnedValue.setNumber(_imageData.width() * _imageData.height());
		return returnedValue;
	}
	switch (_blobType)
	{
		case TiBlobTypeData:
		case TiBlobTypeFile:
		{
			returnedValue.setNumber(getData().length());
			break;
		}
		default: {
			returnedValue.setNumber(0);
			break;
		}
	}

	return returnedValue;
}
Ti::TiValue Ti::TiViewProxy::getSize()
{
	Ti::TiValue val;

	Ti::TiValue width;
	width.setNumber(Ti::TiHelper::PixelsToDP(getView()->viewLayout->_layoutNode.element._measuredWidth));
	Ti::TiValue height;
	height.setNumber(Ti::TiHelper::PixelsToDP(getView()->viewLayout->_layoutNode.element._measuredHeight));

	QMap<QString, Ti::TiValue> size;
	size["width"] = width;
	size["height"] = height;
	val.setMap(size);
	return val;
}
Ti::TiValue Ti::TiBlob::getHeight()
{
	Ti::TiValue returnedValue;
	ensureImageLoaded();
	returnedValue.setNumber(Ti::TiHelper::PixelsToDP(_imageData.height()));
	return returnedValue;
}
Ti::TiValue TiUISliderProxy::getValue()
{
	Ti::TiValue val;
	val.setNumber(_native->value());
	return val;
}
Ti::TiValue TiUISliderProxy::getMinRange()
{
	Ti::TiValue val;
	val.setNumber(_fromRange);
	return val;
}
Ti::TiValue TiUISliderProxy::getMaxRange()
{
	Ti::TiValue val;
	val.setNumber(_toRange);
	return val;
}
Ti::TiValue Ti::TiBlob::getLength()
{
	Ti::TiValue returnedValue;
	returnedValue.setNumber(getData().size());
	return returnedValue;
}