Class Canvas ' Public data public GlobalColourTable() public LocalColourTable() public ForegroundColourIndex ' Current foreground pen public BackgroundColourIndex ' Current background pen public TransparentColourIndex ' Current transparency colour index public UseTransparency ' Boolean for writing transparency public GIF89a ' Write GIF89a data public Comment ' Image comment 255 characters max
public property get Version() Version = CURRENT_VER end property
' Get a specific pixel colour public property get Pixel(ByVal lX,ByVal lY) if lX <= lWidth and lX > 0 and lY <= lHeight and lY > 0 then Pixel = AscB(MidB(sImage,(lWidth * (lY - 1)) + lX,1)) else ' Out of bounds, return zero Pixel = 0 end if end property
' Set a specific pixel colour, look at speeding this up somehow...