X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.utils.ui%2Fsrc%2Forg%2Fsimantics%2Futils%2Fui%2Fgfx%2Frasterize%2FIRasterizable.java;h=aea14d7f788a91994c53d3589fc54d8d33f5e14e;hb=b7250834202635a09dd18e25370ed9b4c32b1380;hp=02af3038dd9f21a06c9415c26e52183be3b620de;hpb=969bd23cab98a79ca9101af33334000879fb60c5;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.utils.ui/src/org/simantics/utils/ui/gfx/rasterize/IRasterizable.java b/bundles/org.simantics.utils.ui/src/org/simantics/utils/ui/gfx/rasterize/IRasterizable.java index 02af3038d..aea14d7f7 100644 --- a/bundles/org.simantics.utils.ui/src/org/simantics/utils/ui/gfx/rasterize/IRasterizable.java +++ b/bundles/org.simantics.utils.ui/src/org/simantics/utils/ui/gfx/rasterize/IRasterizable.java @@ -1,36 +1,36 @@ -/******************************************************************************* - * Copyright (c) 2007, 2010 Association for Decentralized Information Management - * in Industry THTH ry. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * VTT Technical Research Centre of Finland - initial API and implementation - *******************************************************************************/ -/* - * 9.10.2006 - */ -package org.simantics.utils.ui.gfx.rasterize; - -import org.eclipse.swt.graphics.ImageData; - -/** - * IRasterizable - * @author Toni Kalajainen - */ -public interface IRasterizable { - - /** - * Rasterize this image into a buffer. Buffer size must be atleast width*height*4. - * - * @param width width - * @param height height - * @return SWT ImageData description filled with rasterization - * @throws Exception on rasterize problems - */ - ImageData rasterize(int width, int height) - throws Exception; - -} +/******************************************************************************* + * Copyright (c) 2007, 2010 Association for Decentralized Information Management + * in Industry THTH ry. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * VTT Technical Research Centre of Finland - initial API and implementation + *******************************************************************************/ +/* + * 9.10.2006 + */ +package org.simantics.utils.ui.gfx.rasterize; + +import org.eclipse.swt.graphics.ImageData; + +/** + * IRasterizable + * @author Toni Kalajainen + */ +public interface IRasterizable { + + /** + * Rasterize this image into a buffer. Buffer size must be atleast width*height*4. + * + * @param width width + * @param height height + * @return SWT ImageData description filled with rasterization + * @throws Exception on rasterize problems + */ + ImageData rasterize(int width, int height) + throws Exception; + +}