diff dwt/internal/image/PngIhdrChunk.d @ 212:ab60f3309436

reverted the char[] to String and use the an alias.
author Frank Benoit <benoit@tionex.de>
date Mon, 05 May 2008 00:12:38 +0200
parents 9a64a7781bab
children 36f5cb12e1a2
line wrap: on
line diff
--- a/dwt/internal/image/PngIhdrChunk.d	Sat Apr 26 10:01:48 2008 +0200
+++ b/dwt/internal/image/PngIhdrChunk.d	Mon May 05 00:12:38 2008 +0200
@@ -1,4 +1,4 @@
-/*******************************************************************************
+/*******************************************************************************
  * Copyright (c) 2000, 2006 IBM Corporation and others.
  * All rights reserved. This program and the accompanying materials
  * are made available under the terms of the Eclipse Public License v1.0
@@ -20,6 +20,7 @@
 import dwt.internal.image.PngIhdrChunk;
 import dwt.internal.image.PngChunk;
 import tango.text.convert.Format;
+import dwt.dwthelper.utils;
 
 class PngIhdrChunk : PngChunk {
     static const int IHDR_DATA_LENGTH = 13;
@@ -271,7 +272,7 @@
     }
 }
 
-char[] getColorTypeString() {
+String getColorTypeString() {
     switch (colorType) {
         case COLOR_TYPE_GRAYSCALE:              return "Grayscale";
         case COLOR_TYPE_RGB:                    return "RGB";
@@ -282,7 +283,7 @@
     }
 }
 
-char[] getFilterMethodString() {
+String getFilterMethodString() {
     switch (filterMethod) {
         case FILTER_NONE:       return "None";
         case FILTER_SUB:        return "Sub";
@@ -293,7 +294,7 @@
     }
 }
 
-char[] getInterlaceMethodString() {
+String getInterlaceMethodString() {
     switch (interlaceMethod) {
         case INTERLACE_METHOD_NONE:     return "Not Interlaced";
         case INTERLACE_METHOD_ADAM7:    return "Interlaced - ADAM7";
@@ -301,7 +302,7 @@
     }
 }
 
-override char[] contributeToString() {
+override String contributeToString() {
     return Format( "\n\tWidth: {}\n\tHeight: {}\n\tBit Depth: {}\n\tColor Type: {}\n\tCompression Method: {}\n\tFilter Method: {}\n\tInterlace Method: {}",
         width, height, bitDepth, getColorTypeString(), compressionMethod, getFilterMethodString(), getInterlaceMethodString() );
 }