Thank you to anyone who has already donated - your generous donations helped make three months of treatment possible.
My brother Nate continues to fight stage IV Hodgkin's lymphoma. He's just 31, with a wife and baby girl. They have no active income (since he's been unable to return to work), no insurance, and cannot afford the treatment he needs. Nate and his family need your help. Please consider a donation, every dollar helps. Thanks.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 |
package tga import "bytes" //"code.google.com/p/webp" "encoding/binary" "image" "image/draw" _ "image/gif" _ "image/jpeg" _ "image/png" "os" ) //data type const // I = image, U = uncompressed, CM= ColorMap, RGB = RedGreenBlue // RL= Run Length Algo. D=Delta algo, H=Huffman algo, 4PQ = 4-pass quadtree nONE byte = 0 uCMI byte = 1 uRGBI byte = 2 uBWI byte = 3 rLCMI byte = 9 rLRGBI byte = 10 cBWI byte = 11 cCMHDRL byte = 32 cCMHDRL4PQ byte = 33 ) /*func WriteToFile(tga []byte, fn string, overwrite bool) error { fp, _ := os.Getwd() err := os.Chdir(fp + "tga_img") if err != nil { NoDir := os.IsNotExist(err) println("tga_img doesnt exist: ", NoDir) if NoDir { err := os.Mkdir("tga_img", os.ModePerm) if err != nil { return err } err = os.Chdir(fp + "/tga_img") if err != nil { return err } } else { return err } } file, err := os.Create(fn + ".tga") if err != nil { exists := os.IsExist(err) if exists { if !overwrite { err = os.Rename(fn+".tga", fn+time.Now().String()+".tga") if err != nil { return err } } else { err = os.Remove(fn + ".tga") if err != nil { return err } } file, err = os.Create(fn + ".tga") } } n, err := file.Write(tga) if err != nil { return err } println("tga written to disk: wrote: ", n, " bytes") return nil }*/ details log 9d0a6c4bbb9e by mordeus <mordeus@gocos2d.org> on Jul 13, 2012 Diff mend to: click a line to add a comment revisions f050a8f6d61e by mordeus <mordeus@gocos2d.org> on Jul 13, 2012 Diff 85e39bde85b7 by mordeus <mordeus@gocos2d.org> on Jul 13, 2012 Diff revisions of this file info : 3718 bytes, 160 lines raw file |