Save picture in JPEG format instead of PNG, for space consideration.
Small style fix. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40667 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -305,7 +305,7 @@ PersonView::Save()
|
|||||||
if (fPictureView->Bitmap()) {
|
if (fPictureView->Bitmap()) {
|
||||||
BBitmapStream stream(fPictureView->Bitmap());
|
BBitmapStream stream(fPictureView->Bitmap());
|
||||||
BTranslatorRoster* roster = BTranslatorRoster::Default();
|
BTranslatorRoster* roster = BTranslatorRoster::Default();
|
||||||
roster->Translate(&stream, NULL, NULL, fFile, B_PNG_FORMAT,
|
roster->Translate(&stream, NULL, NULL, fFile, B_JPEG_FORMAT,
|
||||||
B_TRANSLATOR_BITMAP);
|
B_TRANSLATOR_BITMAP);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -62,7 +62,7 @@ private:
|
|||||||
BMenuItem* fRevert;
|
BMenuItem* fRevert;
|
||||||
BMenuItem* fSave;
|
BMenuItem* fSave;
|
||||||
BMenuItem* fUndo;
|
BMenuItem* fUndo;
|
||||||
PersonView* fView;
|
PersonView* fView;
|
||||||
|
|
||||||
BString fNameAttribute;
|
BString fNameAttribute;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user