PDShading.java (pdfbox-2.0.23-src) | : | PDShading.java (pdfbox-2.0.24-src) | ||
---|---|---|---|---|
skipping to change at line 20 | skipping to change at line 20 | |||
* | * | |||
* Unless required by applicable law or agreed to in writing, software | * Unless required by applicable law or agreed to in writing, software | |||
* distributed under the License is distributed on an "AS IS" BASIS, | * distributed under the License is distributed on an "AS IS" BASIS, | |||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |||
* See the License for the specific language governing permissions and | * See the License for the specific language governing permissions and | |||
* limitations under the License. | * limitations under the License. | |||
*/ | */ | |||
package org.apache.pdfbox.pdmodel.graphics.shading; | package org.apache.pdfbox.pdmodel.graphics.shading; | |||
import java.awt.Paint; | import java.awt.Paint; | |||
import java.awt.geom.AffineTransform; | ||||
import java.awt.geom.Rectangle2D; | ||||
import java.io.IOException; | import java.io.IOException; | |||
import org.apache.pdfbox.cos.COSArray; | import org.apache.pdfbox.cos.COSArray; | |||
import org.apache.pdfbox.cos.COSBase; | import org.apache.pdfbox.cos.COSBase; | |||
import org.apache.pdfbox.cos.COSDictionary; | import org.apache.pdfbox.cos.COSDictionary; | |||
import org.apache.pdfbox.cos.COSName; | import org.apache.pdfbox.cos.COSName; | |||
import org.apache.pdfbox.pdmodel.common.COSObjectable; | import org.apache.pdfbox.pdmodel.common.COSObjectable; | |||
import org.apache.pdfbox.pdmodel.common.PDRectangle; | import org.apache.pdfbox.pdmodel.common.PDRectangle; | |||
import org.apache.pdfbox.pdmodel.common.function.PDFunction; | import org.apache.pdfbox.pdmodel.common.function.PDFunction; | |||
import org.apache.pdfbox.pdmodel.graphics.color.PDColorSpace; | import org.apache.pdfbox.pdmodel.graphics.color.PDColorSpace; | |||
import org.apache.pdfbox.util.Matrix; | import org.apache.pdfbox.util.Matrix; | |||
skipping to change at line 199 | skipping to change at line 201 | |||
{ | { | |||
dictionary.removeItem(COSName.BBOX); | dictionary.removeItem(COSName.BBOX); | |||
} | } | |||
else | else | |||
{ | { | |||
dictionary.setItem(COSName.BBOX, bBox.getCOSArray()); | dictionary.setItem(COSName.BBOX, bBox.getCOSArray()); | |||
} | } | |||
} | } | |||
/** | /** | |||
* Calculate a bounding rectangle around the areas of this shading context. | ||||
* | ||||
* @param xform | ||||
* @param matrix | ||||
* @return Bounding rectangle or null, if not supported by this shading type | ||||
. | ||||
* @throws java.io.IOException | ||||
*/ | ||||
public Rectangle2D getBounds(AffineTransform xform, Matrix matrix) throws IO | ||||
Exception | ||||
{ | ||||
return null; | ||||
} | ||||
/** | ||||
* This will set the AntiAlias value. | * This will set the AntiAlias value. | |||
* | * | |||
* @param antiAlias the new AntiAlias value | * @param antiAlias the new AntiAlias value | |||
*/ | */ | |||
public void setAntiAlias(boolean antiAlias) | public void setAntiAlias(boolean antiAlias) | |||
{ | { | |||
dictionary.setBoolean(COSName.ANTI_ALIAS, antiAlias); | dictionary.setBoolean(COSName.ANTI_ALIAS, antiAlias); | |||
} | } | |||
/** | /** | |||
End of changes. 2 change blocks. | ||||
0 lines changed or deleted | 17 lines changed or added |