Originally posted by Ruth
View Post

Bitmap.Convert("AutoPlay\\Images\\Test.bmp", "AutoPlay\\Images\\Test.png");
Bitmap.Load("AutoPlay\\Images\\Test.bmp"); Bitmap.Grayscale(); Bitmap.Save("AutoPlay\\Images\\Test.bmp");
-- Draws a vertical line with a solid color. function Bitmap_DrawVLine(nPos, nColor) Lstart = 0; Lend = Bitmap.GetWidth(); for pixel = Lstart, Lend do Bitmap.SetPixel(pixel, nPos, nColor); end end -- Draws a horizontal line with a solid color. function Bitmap_DrawHLine(nPos, nColor) Lstart = 0; Lend = Bitmap.GetHeight(); for pixel = Lstart, Lend do Bitmap.SetPixel(nPos, pixel, nColor); end end -- Draws a border with a solid color. function Bitmap_DrawBorder(nColor) Bitmap_DrawVLine(0, nColor); Bitmap_DrawVLine(Bitmap.GetHeight(), nColor); Bitmap_DrawHLine(0, nColor); Bitmap_DrawHLine(Bitmap.GetWidth(), nColor); end -- Draws a rectangle with a solid color. function Bitmap_DrawRectangle(nX, nY, nColor, nSize) Bitmap.DrawText(nX, nY, "n", nColor, 100, "Wingdings", nSize, false, false); end -- Draws a circle with a solid color. function Bitmap_DrawCircle(nX, nY, nColor, nSize) Bitmap.DrawText(nX, nY, "l", nColor, 100, "Wingdings", nSize, false, false); end
Bitmap.Load("AutoPlay\\Images\\bitmap.bmp"); Bitmap_DrawCircle(55,55,255,150); Bitmap.Save("AutoPlay\\Images\\bitmap1.bmp");
Comment