Results for "Author: robert rayment"
Doodle Bytes by Robert Rayment. (Updated) This shows a variety of animations using the technique of drawing to a byte array and blitting to the screen with a palette. Win98 (exe WinXP) 14 KB.
Layers Demo by Robert Rayment. (Update5 fileops correction) This started as a layers demo but grew a bit to include some effects and drawing tools. Individual pictures can be resized, clipped, lassoed, rotated have effects and drawn on and a merged picture can also have all these apart from lassoing and rotating. The transparency can be varied for each picture apart from the background...etc. Too many things to describe them all here so please read the Help. The screenshot was made with this prog but PSPro used to convert to jpeg. Difficult to be sure all bugs removed so comments welcome. (exe tested on WinXP) Win98, Zip 182 KB including some test pictures.
BmpToJpeg GDI+ version (Quality & Regions) by Robert Rayment. Converts bmp to jpeg. See effect of quality before saving. Selected regions can be of a different quality. Regions can be rectangle, rounded rectangle, oval or lasso. It appears that there are intermittent problems with ijl15.dll and Win2K. So this prog has used cut, paste & adapted code from Carles P V (CodeId=42376) & MrBoBo (CodeId=42488) for GDI+ which, if you haven't got it, can be downloaded at - www.microsoft.com/downloads/release.asp?releaseid=32738 - Install gdiplus.dll in your system or app folder. (Exe tested on XP Home) Win 2K, Win 98, Zip 241 KB (Couple of bmps included).
CUBOID CITY by Robert Rayment. Demo of what can be done with wire-frame cuboids, using pure VB & a couple of APIs for creating & animating scenes. Several thousand cuboids can be happily handled but make sure to compile the animation program!. Two progs, one to draw cuboid pictures (including random mazes) and the other to use the output files (*.ccc) and animate them. There are lots of options to help with drawing - too many to describe here. The animation program uses planar perspective for speed with mostly pure VB. Speed & direction set by distance of cursor from center of display, eye (camera) level and block heights changeable, collison detection and reaching the pyramid in the mazes explodes all. These progs provide a start for a full 3D wire-frame drawing program. Example ccc files included. See Notes. (Exe tested on WinXP) Win98. Zip 115 KB.
Brush Vectors by Robert Rayment. (Added binary input/output. Fast version, see Help for info on Fast redraw.) This is a vector drawing program using brushes with up to 8 widths, 4 directions, color & transparency. A brush stroke is started with a left-click(or space bar), move mouse to draw & left-click(or space bar) to end it. Each stroke is stored in a vector array which can be saved to a file. Colors can be parked and also saved to a file. The advantage of vectors is that they are full 24-bit color can be stretched/shrunk to a new canavs size. File format can be ASCII (.vec) or binary (.veb). Vec files are usually much smaller than BMP and veb files often smaller than GIF or JPEG. There aren't many aids to drawing yet apart from a fill tool and Shift & Ctrl keying to force vertical & horizontal drawing. So it needs some skill to produce nice pictures. Undo/Redo is almost unlimited, vectors can be deleted from the last drawn or clipped down to the last undo. Deleting any individual vector is not included yet. Important to read the help file to get the most out of this prog. (exe tested on WinXP), Win98, Zip 48KB.
Knob-Thumb-wheels & Skins Demo by Robert Rayment. An earlier version has been deleted. Three programs. The first develops and tests bmp strips from a starting image where, for knob wheels the central rotating part's radius and incremental angle can be set as well as, for thumb wheels, number of repeated images. The second program makes compressed True Color 2D arrays of images and masks using zlib.dll (version 1.1.4.0 from www.winimage.com/zlibdll/). For most efficient inflating zlib needs the original uncompressed size. For pictures the original width and height are needed and this is stored at the beginning of the compressed picture array, from which the uncompressed size can also be calculated. The third program uses zlib.dll to inflate the images from a resource file. This is a headerless form, skin, controls & fonts resizing demo using some standard methods (plus some WAV sounds also in the resource file) - a test bed for trying out things. There are 2 full skins but the demo also stores some bitmaps in image boxes, which then serve as buttons and source for tiled skinning. When compiled all the images are then contained within the exe. See Notes.txt. (exe tested on WinXP Home) Win98 Zip 76 KB.
Create/Edit Animated Cursors by Robert Rayment. As well as drawing the frames of an animated cursor, provides a set of step changes across the frames or a selected area for peppering, waving, swirling, squashing & Xfading. Frames can also be step changed for rotation and reduction. So this prog automates some kinds of animation. 1,4,8 & 24 bpp images can be handled. Some effects are included for 24 bpp images. Images can be loaded from ani, cur or ico files as well as captured from a bmp, gif or jpg. Title, author, number of frames, HotX & HotY and frame rates can be changed. For a new cursor any of the bpps can be selected. Some example ani-files are included. Cursors can be tested and saved at any stage. Please read the help for limitations. (Tested on Win98 & WinXP, Zip 82KB) (3 Oct Calc duration in frmDetails, system cursor preserved).
CodeScanMax(Update 6 Nov) by Robert Rayment. (Work around for forms with no code, addess some differences between Win98 & WinXP RichTB versions when setting Fonts & Coloring) .... This program is intended to give info on declarations and procedures used in a project. Also to display some items within procedures and a variety of unused items. To be most useful the exe can be placed on the Office toolbar or the Taskbar. It can then analyse the current project provided it is saved to disk. It is non-intrusive A second use is to copy/paste code from any other project while in the IDE. Please read limitations in the help file. I've deliberately left some unused junk in the program so you can see how it works straightaway. It's 'horses for courses' CodeScan suits me but try these others if you haven't already, they may be closer to what you want -- Code Fixer v2.2.9 Roger Gilchrist(Ulli) CodeId=53297 -- Deeplook v4.7 Dean Camera CodeId=54836 -- Code Statistics/.. v4.3 E O'Sullivan CodeID=39149 or later versions.-- Fast RTB Coloring Will Barden CodeId=39824.-- Back highlighting buggy CodeId=43509 (Tested on Win98 & WinXP, Zip 57KB).
PlayOids2 by Robert Rayment. (2nd update, move shape to mouse click point) (Quick update to rotate in plane). Just a bit of maths play for those who like that kind of thing. Demonstrates rotatable wireframe spheres, ellipsoids,cylinders etc with and without perspective. Aspect ratio, perspective distance and animation variable on the fly and save as bmp. Zip 9 KB.
Digital Image Subtraction by Robert Rayment. (Updated: faster Basic routine, ASM action on Weighting & GreyLevel scrollbars) Demonstrates the power of MMX machine code which is at least 10 times faster than Basic in an optimally compiled EXE. See Info for limitations. Sample BMPs. Assumes MMX & QueryPerform.. APIs. Zip 123 KB.
Semaphore & the International Flag Code by Robert Rayment. Enter any text and illustrate message using Semaphore or Ship flag codes. Learning aid. Straightforward code, easily embellished. (Zip 144 KB).
Beeper Madness by Robert Rayment. Plays 160 tunes through the PC speaker. Crazy! (Not Win98, Zip 143KB)
PolyShader by Robert Rayment. (+ Stars) Demonstrates shading of regular and user defined polygons. Zip 36 KB.
Print Graph Sheets by Robert Rayment. Prints British(US) or Metric scales see screenshot for variations. Zip 8KB.
Basic Sprite Demo by Robert Rayment. I used this to check the extractions from Region Selector (CodeId=64090). Might be instructive to a beginner. Since all the picture boxes are Autosize = True any images, masks & background picture can be loaded in when in the IDE. However, makes use of the VBSpeed timing class which allows smoother time steps than the VB Timer. Zip 174KB.
Digital Image Subtraction or Addition by Robert Rayment. (16th Mar. Correction to Save result) Combines two images by subtraction (Minus or Xor) or addition ( Whole Image or Edge Transparency). Subtraction only shows the difference bewteen two images and addition combines the images. The first image forms the base and the second, size equal or smaller than the base, takes the effects. Hand-scrolling is used rather than scrollbars, where the display is from a windowed array. Results can be saved as a bmp. Can run with Basic or MMX machine code. The machine code is held in a res file and the asm file included for reference. Couple of images included. CodeId=58968 has some subtraction images. dreamVB frames are used (CodeId=58966). Please see menu item Info. In particular the screen res needs to be >= 1024x768. Zip 189 KB.
Grey Options by Robert Rayment. Shows 8 different ways of changing an image to grey scale/effects (See code for descriptions). (Update BGR for RGB)(Zip 38 KB).
Simple 2D Room Planner by Robert Rayment. This basic room planner proved useful to a friend, so maybe for some of you. Note that the minimum screen resolution is 1280 x 768. Zip 29 KB.
Region Selector2 by Robert Rayment. (Upgrade of Region Selector CodeId=60865). This allows a region to be drawn on any bmp, jpg or gif image in 8 different ways. This region can then be saved (bmp) on the same sized rectangle as the original or reduced to a rectangle containing just the region. Regions can be drawn over an area larger than that displayed by using the arrow keys, to operate the scroll bars, simultaneously with the mouse. So - useful for extracting images and making masks. Also included are ini recent files list and drag-drop onto input picture box or the exe. __________________________________________________ Upgrade. Region Selector2 now has Screen Capture and Selectable Surround Color for Extracted Shape. Zip 40 KB.
Desktop Magnifier & Screen Color Picker by Robert Rayment: (Update7 16 Apr))(Added simple RGB color maker, saving Hex color to Clipboard and selectable from a button on the magnifier). Always on top, x2, x4,,,x32 magnification, RGB to Clipboard, exact location of cursor shown on magnifier with a black dot. Magnifier can be moved to any part of the screen. Keys: S to save RGB to clipboard. Incorporated code by LaVolpe to see layered windows! __________________________________________________ Update: Moved all controls onto picture box & made the form same size as picture box. Accomodate the 120 dpi as well as the normal 96 dpi. __________________________________________________ Update2: All on one Form. With Color Maker, added click on screen to set Scrollbars. Mag +- button 2,4,8,16,32. Move one pixel with arrow keys. Esc also to Exit. Toggle Color Maker. Added Matthew's border UC(CodeId 64572). __________________________________________________ Update3: All suggestions included, in particular black dot can be toggled black/white so visible on any background. Zip 19 KB. __________________________________________________ Update4: Simplified. Tidy up exitting. Zip 11 KB. __________________________________________________ Update5: Added Hide Icons from Augustin Rodriguez's 'Virtual Aquarium' CodeId=64997). __________________________________________________ Update6: Adjusted RGB picker for 120 DPI. Anyone know a general routine for this? __________________________________________________ Update7: Added Color pad (5 x 47773 colors) & Clipboard View. Zip 21 KB.