Changeset 480 for trunk/src/cairo/ImageSurface.d
- Timestamp:
- 03/25/08 18:16:02 (8 months ago)
- Files:
-
- trunk/src/cairo/ImageSurface.d (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/cairo/ImageSurface.d
r454 r480 48 48 * module aliases: 49 49 * local aliases: 50 * overrides: 50 51 */ 51 52 … … 83 84 84 85 /** the main Gtk struct as a void* */ 85 protected void* getStruct()86 protected override void* getStruct() 86 87 { 87 88 return cast(void*)cairo_surface; … … 223 224 * Returns: a new cairo_surface_t initialized with the contentsof the PNG file, or a "nil" surface if any error occurred. A nilsurface can be checked for with cairo_surface_status(surface) which 224 225 */ 225 public static ImageSurface createFromPng( char[]filename)226 public static ImageSurface createFromPng(string filename) 226 227 { 227 228 // cairo_surface_t* cairo_image_surface_create_from_png (const char *filename); … … 262 263 * Returns: CAIRO_STATUS_SUCCESS if the PNG file was writtensuccessfully. Otherwise, CAIRO_STATUS_NO_MEMORY if memory could notbe allocated for the operation orCAIRO_STATUS_SURFACE_TYPE_MISMATCH if the surface does not havepixel contents, or CAIRO_STATUS_WRITE_ERROR if an I/O error occurswhile attempting to write the file. 263 264 */ 264 public cairo_status_t writeToPng( char[]filename)265 public cairo_status_t writeToPng(string filename) 265 266 { 266 267 // cairo_status_t cairo_surface_write_to_png (cairo_surface_t *surface, const char *filename);
