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); } }
//************************************************** wxSFTrigger::wxSFTrigger(void) : wxSFRectShape() { m_fRescaleInProgress = false; m_fCanScale = sfdvTRIGGERSHAPE_SCALEIMAGE; CreateFromXPM(NoSource_xpm); // mark serialized properties MarkSerializableDataMembers(); }
//************************************************** wxSFComponent::wxSFComponent(void) : wxSFRectShape() { m_fRescaleInProgress = false; m_fCanScale = sfdvCOMPONENTSHAPE_SCALEIMAGE; CreateFromXPM(NoSource_xpm); // mark serialized properties MarkSerializableDataMembers(); }
//************************************************** //********************Figure IF********************* //************************************************** wxSFIfShape::wxSFIfShape(void) : wxSFDiamondShape() { m_fRescaleInProgress = false; m_fCanScale = sfdvIFSHAPE_SCALEIMAGE; CreateFromXPM(NoSource_xpm); // mark serialized properties MarkSerializableDataMembers(); }