• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

swfから画像を抽出するコマンドラインアプリケーション


Commit MetaInfo

Revision8202398d65a4078556f499529c92e23e94180be1 (tree)
Time2016-09-16 21:54:18
Authormasakih <masakih@user...>
Commitermasakih

Log Message

エラーメッセージを修正

Change Summary

Incremental Difference

--- a/KanColleGraphicDivider/main.m
+++ b/KanColleGraphicDivider/main.m
@@ -47,7 +47,7 @@ void saveDataWithExtension(id data, NSString *extention, int tagCount) {
4747 void saveImageAsPNG(id image, int tagCount) {
4848 NSData *tiffData = [image TIFFRepresentation];
4949 if(!tiffData) {
50- fprintf(stderr, "Can not create masked image.\n");
50+ fprintf(stderr, "Can not create TIFF representation.\n");
5151 return;
5252 }
5353
@@ -195,6 +195,11 @@ void storeBitLossless2ColorTable(const unsigned char *p, UInt32 length, int tagC
195195 free(imageDataP);
196196 imageDataP = NULL;
197197
198+ if(!imageRef) {
199+ fprintf(stderr, "Can not create ImageRef from maked bitmap.");
200+ return;
201+ }
202+
198203 saveImageAsPNG(imageRef, tagCount);
199204 }
200205 void storeBitsLossless2(const unsigned char *p, UInt32 length, int tagCount) {