Beispiel #1
0
JError
JXImage::CreateFromFile
	(
	JXDisplay*			display,
	JXColormap*			colormap,
	const JCharacter*	fileName,
	JXImage**			image,
	const JBoolean		allowApproxColors
	)
{
	const FileType type = GetFileType(fileName);
	if (type == kGIFType)
		{
		return CreateFromGIF(display, colormap, fileName, image, allowApproxColors);
		}
	else if (type == kPNGType)
		{
		return CreateFromPNG(display, colormap, fileName, image, allowApproxColors);
		}
	else if (type == kJPEGType)
		{
		return CreateFromJPEG(display, colormap, fileName, image, allowApproxColors);
		}
	else if (type == kXPMType)
		{
		return CreateFromXPM(display, colormap, fileName, image, allowApproxColors);
		}
	else
		{
		*image = NULL;
		return UnknownFileType(fileName);
		}
}
Beispiel #2
0
//**************************************************
wxSFTrigger::wxSFTrigger(void)
: wxSFRectShape()
{
	m_fRescaleInProgress = false;
	m_fCanScale = sfdvTRIGGERSHAPE_SCALEIMAGE;
	CreateFromXPM(NoSource_xpm);

	// mark serialized properties
	MarkSerializableDataMembers();
}
Beispiel #3
0
//**************************************************
wxSFComponent::wxSFComponent(void)
: wxSFRectShape()
{
	m_fRescaleInProgress = false;
	m_fCanScale = sfdvCOMPONENTSHAPE_SCALEIMAGE;
	CreateFromXPM(NoSource_xpm);

	// mark serialized properties
	MarkSerializableDataMembers();
}
Beispiel #4
0
//**************************************************
//********************Figure IF*********************
//**************************************************
wxSFIfShape::wxSFIfShape(void)
: wxSFDiamondShape()
{
	m_fRescaleInProgress = false;
	m_fCanScale = sfdvIFSHAPE_SCALEIMAGE;
	CreateFromXPM(NoSource_xpm);

	// mark serialized properties
	MarkSerializableDataMembers();
}