Draw Freely, Open Source vector graphics editor, with capabilities similar to Illustrator, Freehand, CorelDraw, or Xara X using the W3C standard Scalable Vector Graphics (SVG) file format. Supported SVG features include shapes, paths, text, etc
Cairo is a powerful 2d graphics library. This document introduces you to how cairo works and many of the functions you will use to create the graphic experience you desire.
def fitToWindow(self): """ Fits the image to the scroll area's size. """ sizeImage = self.lblImage.pixmap().size() height, width = sizeImage.height(), sizeImage.width() # If its smaller than self size, let it be normal size if height<self.size().height() and width<self.size().width(): self.normalSize() else: sizeImage.scale(self.size()*0.98, Qt.KeepAspectRatio) # Adjust the scale self.scale = float(sizeImage.height()) / height # Resize image to 95% self's size self.lblImage.resize(sizeImage) # Toggle windowFit (For resize events) self.windowFit = True
The Large Synoptic Survey Telescope (LSST) is a project to build an 8.4m telescope at Cerro Pachon, Chile and survey the entire sky every three days starting around 2014. The scientific goals of the project range from characterizing the population of largish asteroids which are in orbits that could hit the Earth to understanding the nature of the dark energy that is causing the Universe's expansion to accelerate. The application codes, which handle the images coming from the telescope and generate catalogs of astronomical sources, are being implemented in C++, exported to python using swig. The pipeline processing framework allows these python modules to be connected together to process data in a parallel environment.
Whyteboard is a painting whiteboard application that runs on Linux and Windows, that allows the annotation of PDF, PostScript documents and various image formats with common drawing tools (pen, rectangles, ellipses, text). A history of your drawing is stored, facilitating the replaying of your drawing.
Whyteboard enables tabbed painting, with multiple sheets that can be drawn upon, with each sheet having its own live-updating thumbnail. This allows the editing of multiple documents or images inside a single instance of Whyteboard. Each sheet has its own undo and redo operations as well as its own history replay list.
Dynamically serving images Finally we have to create a Image handler that will dynamically serve these images off the /img path. We'll also update the HTML to pull in these dynamically served images.