示例#1
0
    protected int defineSymbol(
        Movie movie, SWFTagTypes timelineWriter, SWFTagTypes definitionWriter) throws IOException {
      int id = getNextId(movie);

      if (jpegData != null) {
        definitionWriter.tagDefineBitsJPEG2(id, jpegData);
      } else if (jpegIn != null) {
        definitionWriter.tagDefineBitsJPEG2(id, jpegIn);
      }

      return id;
    }
示例#2
0
    protected int defineSymbol(
        Movie movie, SWFTagTypes timelineWriter, SWFTagTypes definitionWriter) throws IOException {
      int id = getNextId(movie);

      if (hasAlpha) {
        definitionWriter.tagDefineBitsLossless2(
            id, format, (int) width, (int) height, colorTable, imageData);
      } else {
        definitionWriter.tagDefineBitsLossless(
            id, format, (int) width, (int) height, colorTable, imageData);
      }

      return id;
    }