Changeset 40 for trunk/ScreenTools.pas
- Timestamp:
- Jan 9, 2017, 8:28:51 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ScreenTools.pas
r39 r40 983 983 yOffset: integer); 984 984 begin 985 assert((Left + xOffset >= 0) and (Left + xOffset + Width <= wMainTexture) and985 Assert((Left + xOffset >= 0) and (Left + xOffset + Width <= wMainTexture) and 986 986 (Top + yOffset >= 0) and (Top + yOffset + Height <= hMainTexture)); 987 987 BitBlt(ca.Handle, Left, Top, Width, Height, MainTexture.Image.Canvas.Handle, … … 1056 1056 Texture.Height - y0cut - y1cut, Texture.Canvas.Handle, x0cut, 1057 1057 y0cut, SRCCOPY); 1058 end 1058 end; 1059 1059 end; 1060 1060 end; … … 1199 1199 i, r, g, b: integer; 1200 1200 begin 1201 with ca do1202 1201 begin 1203 1202 for i := 0 to 15 do … … 1218 1217 else if b >= 256 then 1219 1218 b := 255; 1220 Pen.Color := r + g shl 8 + b shl 16;1221 MoveTo(x + dx * i, y + dy * i);1222 LineTo(x + dx * i + Width, y + dy * i + Height);1219 ca.Pen.Color := r + g shl 8 + b shl 16; 1220 ca.MoveTo(x + dx * i, y + dy * i); 1221 ca.LineTo(x + dx * i + Width, y + dy * i + Height); 1223 1222 end; 1224 Pen.Color := $000000;1225 MoveTo(x + 1, y + 16 * dy + Height);1226 LineTo(x + 16 * dx + Width, y + 16 * dy + Height);1227 LineTo(x + 16 * dx + Width, y);1223 ca.Pen.Color := $000000; 1224 ca.MoveTo(x + 1, y + 16 * dy + Height); 1225 ca.LineTo(x + 16 * dx + Width, y + 16 * dy + Height); 1226 ca.LineTo(x + 16 * dx + Width, y); 1228 1227 end 1229 1228 end;
Note:
See TracChangeset
for help on using the changeset viewer.